| 101 | } |
| 102 | |
| 103 | String runContextConvertString(StackContext *ctx, ExprType inType, void *inFunc) |
| 104 | { |
| 105 | switch(inType) |
| 106 | { |
| 107 | case etInt: return String(ctx->runInt(inFunc)); |
| 108 | case etFloat: return String(ctx->runFloat(inFunc)); |
| 109 | case etObject: return ctx->runObject(inFunc); |
| 110 | case etString: return ctx->runString(inFunc); |
| 111 | default: |
| 112 | ctx->runVoid(inFunc); |
| 113 | } |
| 114 | return 0; |
| 115 | } |
| 116 | |
| 117 | hx::Object *runContextConvertObject(StackContext *ctx, ExprType inType, void *inFunc) |
| 118 | { |