MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / gxf

Function gxf

extlibs/lua/src/ldebug.c:520–528  ·  view source on GitHub ↗

** Check whether table being indexed by instruction 'i' is the ** environment '_ENV' */

Source from the content-addressed store, hash-verified

518** environment '_ENV'
519*/
520static const char *gxf (const Proto *p, int pc, Instruction i, int isup) {
521 int t = GETARG_B(i); /* table index */
522 const char *name; /* name of indexed variable */
523 if (isup) /* is an upvalue? */
524 name = upvalname(p, t);
525 else
526 getobjname(p, pc, t, &name);
527 return (name && strcmp(name, LUA_ENV) == 0) ? "global" : "field";
528}
529
530
531static const char *getobjname (const Proto *p, int lastpc, int reg,

Callers 1

getobjnameFunction · 0.85

Calls 2

upvalnameFunction · 0.85
getobjnameFunction · 0.85

Tested by

no test coverage detected