| 559 | #ifdef AS_MAX_PORTABILITY |
| 560 | |
| 561 | int CallSystemFunction(int id, asCContext *context) |
| 562 | { |
| 563 | asCScriptEngine *engine = context->m_engine; |
| 564 | asCScriptFunction *func = engine->scriptFunctions[id]; |
| 565 | asSSystemFunctionInterface *sysFunc = func->sysFuncIntf; |
| 566 | int callConv = sysFunc->callConv; |
| 567 | if( callConv == ICC_GENERIC_FUNC || callConv == ICC_GENERIC_METHOD ) |
| 568 | return context->CallGeneric(func); |
| 569 | |
| 570 | context->SetInternalException(TXT_INVALID_CALLING_CONVENTION); |
| 571 | |
| 572 | return 0; |
| 573 | } |
| 574 | |
| 575 | #else |
| 576 |
no test coverage detected