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

Function PrintHeader

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

Source from the content-addressed store, hash-verified

668#define S(x) (int)(x),SS(x)
669
670static void PrintHeader(const Proto* f)
671{
672 const char* s=f->source ? getstr(f->source) : "=?";
673 if (*s=='@' || *s=='=')
674 s++;
675 else if (*s==LUA_SIGNATURE[0])
676 s="(bstring)";
677 else
678 s="(string)";
679 printf("\n%s <%s:%d,%d> (%d instruction%s at %p)\n",
680 (f->linedefined==0)?"main":"function",s,
681 f->linedefined,f->lastlinedefined,
682 S(f->sizecode),VOID(f));
683 printf("%d%s param%s, %d slot%s, %d upvalue%s, ",
684 (int)(f->numparams),f->is_vararg?"+":"",SS(f->numparams),
685 S(f->maxstacksize),S(f->sizeupvalues));
686 printf("%d local%s, %d constant%s, %d function%s\n",
687 S(f->sizelocvars),S(f->sizek),S(f->sizep));
688}
689
690static void PrintDebug(const Proto* f)
691{

Callers 1

PrintFunctionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected