| 126 | } |
| 127 | |
| 128 | void 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 | |
| 147 | void uae_lua_load(const TCHAR *filename) |
| 148 | { |
no test coverage detected