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

Function ResetScript

engine/gui/src/gui.cpp:4745–4751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4743 }
4744
4745 static void ResetScript(HScript script) {
4746 memset(script, 0, sizeof(Script));
4747 for (int i = 0; i < MAX_SCRIPT_FUNCTION_COUNT; ++i) {
4748 script->m_FunctionReferences[i] = LUA_NOREF;
4749 }
4750 script->m_InstanceReference = LUA_NOREF;
4751 }
4752
4753 HScript NewScript(HContext context)
4754 {

Callers 2

NewScriptFunction · 0.70
DeleteScriptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected