MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaE_warnerror

Function luaE_warnerror

3rd/lua-5.4.3/src/lstate.c:427–438  ·  view source on GitHub ↗

** Generate a warning from an error message */

Source from the content-addressed store, hash-verified

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

Callers 1

GCTMFunction · 0.85

Calls 1

luaE_warningFunction · 0.85

Tested by

no test coverage detected