print.c File Reference

Go to the source code of this file.

Defines

#define luac_c
#define LUA_CORE
#define PrintFunction   luaU_print
#define Sizeof(x)   ((int)sizeof(x))
#define VOID(p)   ((const void*)(p))
#define SS(x)   (x==1)?"":"s"
#define S(x)   x,SS(x)

Functions

static void PrintString (const TString *ts)
static void PrintConstant (const Proto *f, int i)
static void PrintCode (const Proto *f)
static void PrintHeader (const Proto *f)
static void PrintConstants (const Proto *f)
static void PrintLocals (const Proto *f)
static void PrintUpvalues (const Proto *f)
void PrintFunction (const Proto *f, int full)

Define Documentation

#define LUA_CORE

Definition at line 11 of file print.c.

#define luac_c

Definition at line 10 of file print.c.

#define PrintFunction   luaU_print

Definition at line 18 of file print.c.

Referenced by PrintFunction().

#define S (  )     x,SS(x)

Definition at line 159 of file print.c.

Referenced by luaU_undump(), and PrintHeader().

#define Sizeof (  )     ((int)sizeof(x))

Definition at line 20 of file print.c.

Referenced by PrintHeader().

#define SS (  )     (x==1)?"":"s"

Definition at line 158 of file print.c.

Referenced by PrintHeader().

#define VOID (  )     ((const void*)(p))

Definition at line 21 of file print.c.

Referenced by PrintCode(), PrintConstants(), PrintHeader(), PrintLocals(), and PrintUpvalues().


Function Documentation

static void PrintCode ( const Proto f  )  [static]
static void PrintConstant ( const Proto f,
int  i 
) [static]
static void PrintConstants ( const Proto f  )  [static]

Definition at line 181 of file print.c.

References PrintConstant(), Proto::sizek, and VOID.

Referenced by PrintFunction().

void PrintFunction ( const Proto f,
int  full 
)
static void PrintHeader ( const Proto f  )  [static]
static void PrintLocals ( const Proto f  )  [static]

Definition at line 193 of file print.c.

References LocVar::endpc, getstr, Proto::locvars, Proto::sizelocvars, LocVar::startpc, LocVar::varname, and VOID.

Referenced by PrintFunction().

static void PrintString ( const TString ts  )  [static]

Definition at line 23 of file print.c.

References getstr, TString::len, and TString::tsv.

Referenced by PrintConstant().

static void PrintUpvalues ( const Proto f  )  [static]

Definition at line 204 of file print.c.

References getstr, Proto::sizeupvalues, Proto::upvalues, and VOID.

Referenced by PrintFunction().


ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:01 2011 by Doxygen 1.6.1