MCPcopy Create free account
hub / github.com/ZDoom/Raze / CallCreateFunction

Function CallCreateFunction

source/common/cutscenes/screenjob.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//=============================================================================
110
111void 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//

Callers 2

CallCreateMapFunctionFunction · 0.85
CreateMethod · 0.85

Calls 4

LookupFunctionFunction · 0.85
I_ErrorFunction · 0.85
VMCallFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected