MCPcopy Create free account
hub / github.com/defold/defold / TeardownCallback

Function TeardownCallback

engine/script/src/script.cpp:2016–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2014 }
2015
2016 void TeardownCallback(LuaCallbackInfo* cbk)
2017 {
2018 lua_State* L = cbk->m_L;
2019 // [-2] old instance
2020 // [-1] context table
2021 lua_pop(L, 1);
2022
2023 SetInstance(L);
2024 }
2025
2026 bool InvokeCallback(LuaCallbackInfo* cbk, LuaCallbackUserFn fn, void* user_context)
2027 {

Callers 12

Callback_AddMountFunction · 0.85
InvokeCallbackFunction · 0.85
OnContextEventFunction · 0.85
PrewarmTextCallbackFunction · 0.85
RunCallbackFunction · 0.85
RunBatchedEventCallbackFunction · 0.85
DispatchCompletedRequestFunction · 0.85
HandleRequestCompletedFunction · 0.85

Calls 1

SetInstanceFunction · 0.85

Tested by

no test coverage detected