MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / luaE_warnerror

Function luaE_warnerror

xrepo/packages/l/lua/port/lua/src/lstate.c:428–439  ·  view source on GitHub ↗

** Generate a warning from an error message */

Source from the content-addressed store, hash-verified

426** Generate a warning from an error message
427*/
428void luaE_warnerror (lua_State *L, const char *where) {
429 TValue *errobj = s2v(L->top - 1); /* error object */
430 const char *msg = (ttisstring(errobj))
431 ? svalue(errobj)
432 : "error object is not a string";
433 /* produce warning "error in %s (%s)" (where, msg) */
434 luaE_warning(L, "error in ", 1);
435 luaE_warning(L, where, 1);
436 luaE_warning(L, " (", 1);
437 luaE_warning(L, msg, 1);
438 luaE_warning(L, ")", 0);
439}
440

Callers 1

GCTMFunction · 0.85

Calls 1

luaE_warningFunction · 0.85

Tested by

no test coverage detected