| 904 | } |
| 905 | |
| 906 | static void TestScriptExtensionFinalize(dmScript::HContext context) |
| 907 | { |
| 908 | lua_State* L = dmScript::GetLuaState(context); |
| 909 | DM_LUA_STACK_CHECK(L, 0); |
| 910 | |
| 911 | TestScriptExtension* extension = GetTestScriptExtension(context); |
| 912 | ++extension->m_FinalizedCalled = 1; |
| 913 | lua_pushinteger(L, (lua_Integer)dmHashBuffer32("__TestScriptExtension__", strlen("__TestScriptExtension__"))); |
| 914 | lua_pushnil(L); |
| 915 | dmScript::SetContextValue(context); |
| 916 | dmScript::Unref(L, LUA_REGISTRYINDEX, extension->m_SelfRef); |
| 917 | } |
| 918 | |
| 919 | struct TestScriptWorldContext |
| 920 | { |
nothing calls this directly
no test coverage detected