MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / uae_lua_run_handler

Function uae_lua_run_handler

src/luascript.cpp:128–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void uae_lua_run_handler(const char *name)
129{
130 lua_State **L = g_states;
131 while(*L) {
132 uae_lua_aquire_lock();
133 lua_getglobal(*L, name);
134 if (lua_isnil(*L, -1)) {
135 //lua_pop(*L, 1);
136 }
137 else if (lua_pcall(*L, 0, 0, 0) != 0) {
138 uae_lua_log_error(*L, name);
139 //lua_pop(*L, 1);
140 }
141 lua_settop(*L, 0);
142 uae_lua_release_lock();
143 L++;
144 }
145}
146
147void uae_lua_load(const TCHAR *filename)
148{

Callers 2

vsync_handler_postFunction · 0.85
config_check_vsyncFunction · 0.85

Calls 3

uae_lua_aquire_lockFunction · 0.85
uae_lua_log_errorFunction · 0.85
uae_lua_release_lockFunction · 0.85

Tested by

no test coverage detected