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

Method runString

src/hx/cppia/Cppia.cpp:1179–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177 }
1178
1179 String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
1180 {
1181 switch(op)
1182 {
1183 case castInt:
1184 return String( value->runInt(ctx) );
1185 case castFloat:
1186 return String( value->runFloat(ctx) );
1187 case castBool:
1188 return String( (bool)value->runInt(ctx) );
1189 default:
1190 break;
1191 }
1192 hx::Object *o = runObject(ctx);
1193 return o ? o->toString() : String();
1194 }
1195
1196
1197 hx::Object *runObject(CppiaCtx *ctx) HXCPP_OVERRIDE

Callers

nothing calls this directly

Calls 4

StringClass · 0.50
runIntMethod · 0.45
runFloatMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected