MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / PrintDebug

Function PrintDebug

xrepo/packages/l/lua/port/lua/src/luac.c:690–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

PrintFunctionFunction · 0.85

Calls 2

PrintTypeFunction · 0.85
PrintConstantFunction · 0.85

Tested by

no test coverage detected