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

Function PrintConstant

third-party/lua-5.1.5/src/print.c:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static void PrintConstant(const Proto* f, int i)
52{
53 const TValue* o=&f->k[i];
54 switch (ttype(o))
55 {
56 case LUA_TNIL:
57 printf("nil");
58 break;
59 case LUA_TBOOLEAN:
60 printf(bvalue(o) ? "true" : "false");
61 break;
62 case LUA_TNUMBER:
63 printf(LUA_NUMBER_FMT,nvalue(o));
64 break;
65 case LUA_TSTRING:
66 PrintString(rawtsvalue(o));
67 break;
68 default: /* cannot happen */
69 printf("? type=%d",ttype(o));
70 break;
71 }
72}
73
74static void PrintCode(const Proto* f)
75{

Callers 2

PrintCodeFunction · 0.70
PrintConstantsFunction · 0.70

Calls 1

PrintStringFunction · 0.70

Tested by

no test coverage detected