MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / ReleaseFunc

Method ReleaseFunc

Code/CryEngine/CryScriptSystem/ScriptSystem.cpp:1913–1926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1911}
1912
1913void CScriptSystem::ReleaseFunc(HSCRIPTFUNCTION f)
1914{
1915 CHECK_STACK(L);
1916
1917 if (f)
1918 {
1919#ifdef _DEBUG
1920 lua_getref(L, (int)(INT_PTR)f);
1921 assert(lua_type(L, -1) == LUA_TFUNCTION);
1922 lua_pop(L, 1);
1923#endif
1924 lua_unref(L, (int)(INT_PTR)f);
1925 }
1926}
1927
1928ScriptAnyValue CScriptSystem::CloneAny(const ScriptAnyValue& any)
1929{

Callers 15

operator()Method · 0.80
CallScriptMethod · 0.80
~CInteractorMethod · 0.80
CallScriptMethod · 0.80
CallNotificationMethod · 0.80
OnCheckpointLoadedMethod · 0.80
~CGameContextMethod · 0.80
ControlObjectMethod · 0.80
~CFlowDataMethod · 0.80
SetEntityIdMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected