MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaE_warnerror

Function luaE_warnerror

third-party/lua-5.4.6/src/lstate.c:436–447  ·  view source on GitHub ↗

** Generate a warning from an error message */

Source from the content-addressed store, hash-verified

434** Generate a warning from an error message
435*/
436void luaE_warnerror (lua_State *L, const char *where) {
437 TValue *errobj = s2v(L->top.p - 1); /* error object */
438 const char *msg = (ttisstring(errobj))
439 ? getstr(tsvalue(errobj))
440 : "error object is not a string";
441 /* produce warning "error in %s (%s)" (where, msg) */
442 luaE_warning(L, "error in ", 1);
443 luaE_warning(L, where, 1);
444 luaE_warning(L, " (", 1);
445 luaE_warning(L, msg, 1);
446 luaE_warning(L, ")", 0);
447}
448

Callers 1

GCTMFunction · 0.70

Calls 1

luaE_warningFunction · 0.70

Tested by

no test coverage detected