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

Function luaG_opinterror

third-party/lua-5.3.5/src/ldebug.c:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595
596
597l_noret luaG_opinterror (lua_State *L, const TValue *p1,
598 const TValue *p2, const char *msg) {
599 lua_Number temp;
600 if (!tonumber(p1, &temp)) /* first operand is wrong? */
601 p2 = p1; /* now second is wrong */
602 luaG_typeerror(L, p2, msg);
603}
604
605
606/*

Callers 1

luaT_trybinTMFunction · 0.70

Calls 1

luaG_typeerrorFunction · 0.70

Tested by

no test coverage detected