| 40 | |
| 41 | |
| 42 | static l_noret error(LoadState *S, const char *why) { |
| 43 | luaO_pushfstring(S->L, "%s: %s precompiled chunk", S->name, why); |
| 44 | global_glua_chain_api->throw_exception(S->L, THINKYOUNG_API_SIMPLE_ERROR, "%s: %s precompiled chunk", S->name, why); |
| 45 | // TODO: set error in L struct |
| 46 | luaD_throw(S->L, LUA_ERRSYNTAX); |
| 47 | } |
| 48 | |
| 49 | |
| 50 | /* |
no test coverage detected