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

Method genCode

src/hx/cppia/StringBuiltin.cpp:144–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 }
143
144 void genCode(CppiaCompiler *compiler, const JitVal &inDest,ExprType destType) HXCPP_OVERRIDE
145 {
146 if (destType==etString)
147 {
148 strVal->genCode(compiler, inDest, destType);
149 compiler->callNative( (void *)strToCase, inDest.as(jtString) );
150 }
151 else
152 {
153 JitTemp tmpVal(compiler,jtString);
154 strVal->genCode(compiler, tmpVal, etString);
155 compiler->callNative( (void *)strToCase, tmpVal);
156 compiler->convert( tmpVal, etString, inDest, destType );
157 }
158 }
159 #endif
160};
161

Callers

nothing calls this directly

Calls 4

callNativeMethod · 0.80
asMethod · 0.80
convertMethod · 0.80
genCodeMethod · 0.45

Tested by

no test coverage detected