l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { va_list argp; va_start(argp, fmt); addinfo(L, luaO_pushvfstring(L, fmt, argp)); va_end(argp); luaG_errormsg(L); }
void luaG_runerror_ok (lua_State *L, const char *fmt, ...) { //logt("luaG_runerror"); va_list argp; va_start(argp, fmt); addinfo(L, luaO_pushvfstring(L, fmt, argp)); va_end(argp); luaG_errormsg(L); }
l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { CallInfo *ci = L->ci; const char *msg; va_list argp; va_start(argp, fmt); msg = luaO_pushvfstring(L, fmt, argp); /* format message */ va_end(argp); if (isLua(ci)) /* if Lua function, add source:line information */ luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci)); luaG_errormsg(L); }
l_noret luaG_runerror (lua_State *L, const char *fmt, ...) { CallInfo *ci = L->ci; const char *msg; va_list argp; va_start(argp, fmt); msg = luaO_pushvfstring(L, fmt, argp); /* format message */ va_end(argp); if (isLua(ci)) /* if Lua function, add source:line information */ luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci)); #if LUA_TILDE_DEBUGGER if (L->hookmask & LUA_MASKERROR) luaD_hook(L, LUA_HOOKERROR, -1); #endif /* LUA_TILDE_DEBUGGER */ luaG_errormsg(L); }
// It seems that on Symbian, merely invoking a function with varargs // can mess up the stack so that an exception (or possibly some other // kind of a return) will then cause a KERN-EXEC 3. Possibly we will // have to avoid invoking this function on Symbian until we can find a // fix. In any case, this is a known problem, see // http://discussion.forum.nokia.com/forum/showthread.php?t=115248. // Upgrading to GCCE 4 might possibly help? void luaG_runerror_wa (lua_State *L, const char *s) { //logt("luaG_runerror_wa"); setsvalue2s(L, L->top, luaS_new(L, s)); incr_top(L); luaG_errormsg(L); }