| 881 | } |
| 882 | |
| 883 | void TestScriptExtensionInitialize(dmScript::HContext context) |
| 884 | { |
| 885 | lua_State* L = dmScript::GetLuaState(context); |
| 886 | DM_LUA_STACK_CHECK(L, 0); |
| 887 | |
| 888 | TestScriptExtension* extension = (TestScriptExtension*)lua_newuserdata(L, sizeof(TestScriptExtension)); |
| 889 | memset(extension, 0, sizeof(TestScriptExtension)); |
| 890 | extension->m_SelfRef = dmScript::Ref(L, LUA_REGISTRYINDEX); |
| 891 | extension->m_InitializeCalled = 1; |
| 892 | lua_pushinteger(L, (lua_Integer)dmHashBuffer32("__TestScriptExtension__", strlen("__TestScriptExtension__"))); |
| 893 | lua_pushnumber(L, extension->m_SelfRef); |
| 894 | dmScript::SetContextValue(context); |
| 895 | } |
| 896 | |
| 897 | static void TestScriptExtensionUpdate(dmScript::HContext context) |
| 898 | { |
nothing calls this directly
no test coverage detected