MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / genCode

Method genCode

src/hx/cppia/GlobalBuiltin.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 }
208
209 void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE
210 {
211 if (destType==etFloat && isMemoryVal(inDest) )
212 {
213 compiler->callNative( (void *)run, inDest.as(jtFloat));
214 }
215 else
216 {
217 JitTemp temp(compiler,jtFloat);
218 compiler->callNative( (void *)run, temp);
219 compiler->convert(temp, etFloat, inDest, destType);
220 }
221 }
222 #endif
223};
224

Callers

nothing calls this directly

Calls 4

isMemoryValFunction · 0.85
callNativeMethod · 0.80
asMethod · 0.80
convertMethod · 0.80

Tested by

no test coverage detected