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