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

Function ScriptSoundRegister

engine/gamesys/src/gamesys/scripts/script_sound.cpp:751–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

749 };
750
751 void ScriptSoundRegister(const ScriptLibContext& context)
752 {
753 lua_State* L = context.m_LuaState;
754 int top = lua_gettop(L);
755 (void)top;
756 luaL_register(L, "sound", SOUND_FUNCTIONS);
757 lua_pop(L, 1);
758 assert(top == lua_gettop(L));
759 }
760
761 void ScriptSoundOnWindowFocus(bool focus)
762 {

Callers 1

InitializeScriptLibsFunction · 0.85

Calls 2

lua_gettopFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected