MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / ScriptAnyFactory_Generic

Function ScriptAnyFactory_Generic

external/as_add_on/scriptany/scriptany.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <string.h>
5
6BEGIN_AS_NAMESPACE
7
8// We'll use the generic interface for the factories as we need the engine pointer
9static void ScriptAnyFactory_Generic(asIScriptGeneric *gen)
10{
11 asIScriptEngine *engine = gen->GetEngine();
12
13 *(CScriptAny**)gen->GetAddressOfReturnLocation() = new CScriptAny(engine);
14}
15
16static void ScriptAnyFactory2_Generic(asIScriptGeneric *gen)
17{

Callers

nothing calls this directly

Calls 1

GetEngineMethod · 0.45

Tested by

no test coverage detected