MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaE_warnerror

Function luaE_warnerror

lib/lua/src/lstate.c:433–444  ·  view source on GitHub ↗

** Generate a warning from an error message */

Source from the content-addressed store, hash-verified

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

Callers 1

GCTMFunction · 0.85

Calls 1

luaE_warningFunction · 0.85

Tested by

no test coverage detected