MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / PrintDebug

Function PrintDebug

lib/lua/src/luac.c:688–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688static void PrintDebug(const Proto* f)
689{
690 int i,n;
691 n=f->sizek;
692 printf("constants (%d) for %p:\n",n,VOID(f));
693 for (i=0; i<n; i++)
694 {
695 printf("\t%d\t",i);
696 PrintType(f,i);
697 PrintConstant(f,i);
698 printf("\n");
699 }
700 n=f->sizelocvars;
701 printf("locals (%d) for %p:\n",n,VOID(f));
702 for (i=0; i<n; i++)
703 {
704 printf("\t%d\t%s\t%d\t%d\n",
705 i,getstr(f->locvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1);
706 }
707 n=f->sizeupvalues;
708 printf("upvalues (%d) for %p:\n",n,VOID(f));
709 for (i=0; i<n; i++)
710 {
711 printf("\t%d\t%s\t%d\t%d\n",
712 i,UPVALNAME(i),f->upvalues[i].instack,f->upvalues[i].idx);
713 }
714}
715
716static void PrintFunction(const Proto* f, int full)
717{

Callers 1

PrintFunctionFunction · 0.85

Calls 2

PrintTypeFunction · 0.85
PrintConstantFunction · 0.85

Tested by

no test coverage detected