MCPcopy Create free account
hub / github.com/Tencent/xLua / luaG_opinterror

Function luaG_opinterror

WebGLPlugins/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.85

Calls 1

luaG_typeerrorFunction · 0.85

Tested by

no test coverage detected