MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaG_opinterror

Function luaG_opinterror

depends/lua/src/ldebug.c:598–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaT_trybinTMFunction · 0.85

Calls 1

luaG_typeerrorFunction · 0.85

Tested by

no test coverage detected