| 109 | //============================================================================= |
| 110 | |
| 111 | void CallCreateFunction(const char* qname, DObject* runner) |
| 112 | { |
| 113 | auto func = LookupFunction(qname); |
| 114 | if (func->Proto->ArgumentTypes.Size() != 1) I_Error("Bad cutscene function %s. Must receive precisely one argument.", qname); |
| 115 | if (func->Proto->ArgumentTypes[0] != cutscene.runnerclasstype) I_Error("Bad cutscene function %s. Must receive ScreenJobRunner reference.", qname); |
| 116 | VMValue val = runner; |
| 117 | VMCall(func, &val, 1, nullptr, 0); |
| 118 | } |
| 119 | |
| 120 | //============================================================================= |
| 121 | // |
no test coverage detected