MCPcopy Create free account
hub / github.com/OpenMW/openmw / convert

Function convert

components/compiler/generator.cpp:436–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 }
435
436 void convert(CodeContainer& code, char fromType, char toType)
437 {
438 if (fromType != toType)
439 {
440 if (fromType == 'f' && toType == 'l')
441 opFloatToInt(code);
442 else if (fromType == 'l' && toType == 'f')
443 opIntToFloat(code);
444 else
445 throw std::logic_error("illegal type conversion");
446 }
447 }
448
449 void exit(CodeContainer& code)
450 {

Callers 1

parseArgumentsMethod · 0.70

Calls 2

opFloatToIntFunction · 0.85
opIntToFloatFunction · 0.85

Tested by

no test coverage detected