MCPcopy Create free account
hub / github.com/Tencent/xLua / PrintDebug

Function PrintDebug

WebGLPlugins/luac.c:415–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415static void PrintDebug(const Proto* f)
416{
417 int i,n;
418 n=f->sizek;
419 printf("constants (%d) for %p:\n",n,VOID(f));
420 for (i=0; i<n; i++)
421 {
422 printf("\t%d\t",i+1);
423 PrintConstant(f,i);
424 printf("\n");
425 }
426 n=f->sizelocvars;
427 printf("locals (%d) for %p:\n",n,VOID(f));
428 for (i=0; i<n; i++)
429 {
430 printf("\t%d\t%s\t%d\t%d\n",
431 i,getstr(f->locvars[i].varname),f->locvars[i].startpc+1,f->locvars[i].endpc+1);
432 }
433 n=f->sizeupvalues;
434 printf("upvalues (%d) for %p:\n",n,VOID(f));
435 for (i=0; i<n; i++)
436 {
437 printf("\t%d\t%s\t%d\t%d\n",
438 i,UPVALNAME(i),f->upvalues[i].instack,f->upvalues[i].idx);
439 }
440}
441
442static void PrintFunction(const Proto* f, int full)
443{

Callers 1

PrintFunctionFunction · 0.85

Calls 1

PrintConstantFunction · 0.85

Tested by

no test coverage detected