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

Method callNative

src/hx/cppia/CppiaCompiler.cpp:1317–1326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1315 }
1316
1317 void callNative(void *func) HXCPP_OVERRIDE
1318 {
1319 makesNativeCalls = true;
1320 if (maxTempCount<1)
1321 maxTempCount =1;
1322 if (compiler)
1323 {
1324 sljit_emit_ijump(compiler, SLJIT_CALL1, SLJIT_IMM, SLJIT_FUNC_OFFSET(func));
1325 }
1326 }
1327 void callNative(void *func, const JitVal &inArg0) HXCPP_OVERRIDE
1328 {
1329 makesNativeCalls = true;

Callers 15

genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genCodeMethod · 0.80
genSetterFunction · 0.80

Calls 4

isMemoryValFunction · 0.85
asMethod · 0.80
getRegMethod · 0.80
sljit_emit_ijumpFunction · 0.50

Tested by

no test coverage detected