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

Function luaE_warnerror

extlibs/lua/src/lstate.c:449–460  ·  view source on GitHub ↗

** Generate a warning from an error message */

Source from the content-addressed store, hash-verified

447** Generate a warning from an error message
448*/
449void luaE_warnerror (lua_State *L, const char *where) {
450 TValue *errobj = s2v(L->top - 1); /* error object */
451 const char *msg = (ttisstring(errobj))
452 ? svalue(errobj)
453 : "error object is not a string";
454 /* produce warning "error in %s (%s)" (where, msg) */
455 luaE_warning(L, "error in ", 1);
456 luaE_warning(L, where, 1);
457 luaE_warning(L, " (", 1);
458 luaE_warning(L, msg, 1);
459 luaE_warning(L, ")", 0);
460}
461

Callers 2

callclosemthFunction · 0.85
GCTMFunction · 0.85

Calls 1

luaE_warningFunction · 0.85

Tested by

no test coverage detected