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

Function getupvalname

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

** Checks whether value 'o' came from an upvalue. (That can only happen ** with instructions OP_GETTABUP/OP_SETTABUP, which operate directly on ** upvalues.) */

Source from the content-addressed store, hash-verified

555** upvalues.)
556*/
557static const char *getupvalname (CallInfo *ci, const TValue *o,
558 const char **name) {
559 LClosure *c = ci_func(ci);
560 int i;
561 for (i = 0; i < c->nupvalues; i++) {
562 if (c->upvals[i]->v == o) {
563 *name = upvalname(c->p, i);
564 return "upvalue";
565 }
566 }
567 return NULL;
568}
569
570
571static const char *varinfo (lua_State *L, const TValue *o) {

Callers 1

varinfoFunction · 0.70

Calls 1

upvalnameFunction · 0.70

Tested by

no test coverage detected