RetroArch
Classes | Macros | Functions
ldump.c File Reference
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
Include dependency graph for ldump.c:

Classes

struct  DumpState
 

Macros

#define ldump_c
 
#define LUA_CORE
 
#define DumpVector(v, n, D)   DumpBlock(v,(n)*sizeof((v)[0]),D)
 
#define DumpLiteral(s, D)   DumpBlock(s, sizeof(s) - sizeof(char), D)
 
#define DumpVar(x, D)   DumpVector(&x,1,D)
 

Functions

static void DumpBlock (const void *b, size_t size, DumpState *D)
 
static void DumpByte (int y, DumpState *D)
 
static void DumpInt (int x, DumpState *D)
 
static void DumpNumber (lua_Number x, DumpState *D)
 
static void DumpInteger (lua_Integer x, DumpState *D)
 
static void DumpString (const TString *s, DumpState *D)
 
static void DumpCode (const Proto *f, DumpState *D)
 
static void DumpFunction (const Proto *f, TString *psource, DumpState *D)
 
static void DumpConstants (const Proto *f, DumpState *D)
 
static void DumpProtos (const Proto *f, DumpState *D)
 
static void DumpUpvalues (const Proto *f, DumpState *D)
 
static void DumpDebug (const Proto *f, DumpState *D)
 
static void DumpHeader (DumpState *D)
 
int luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
 

Macro Definition Documentation

◆ DumpLiteral

#define DumpLiteral (   s,
 
)    DumpBlock(s, sizeof(s) - sizeof(char), D)

◆ DumpVar

#define DumpVar (   x,
 
)    DumpVector(&x,1,D)

◆ DumpVector

#define DumpVector (   v,
  n,
 
)    DumpBlock(v,(n)*sizeof((v)[0]),D)

◆ ldump_c

#define ldump_c

◆ LUA_CORE

#define LUA_CORE

Function Documentation

◆ DumpBlock()

static void DumpBlock ( const void b,
size_t  size,
DumpState D 
)
static

◆ DumpByte()

static void DumpByte ( int  y,
DumpState D 
)
static
Here is the caller graph for this function:

◆ DumpCode()

static void DumpCode ( const Proto f,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpConstants()

static void DumpConstants ( const Proto f,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpDebug()

static void DumpDebug ( const Proto f,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpFunction()

static void DumpFunction ( const Proto f,
TString psource,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpHeader()

static void DumpHeader ( DumpState D)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpInt()

static void DumpInt ( int  x,
DumpState D 
)
static
Here is the caller graph for this function:

◆ DumpInteger()

static void DumpInteger ( lua_Integer  x,
DumpState D 
)
static
Here is the caller graph for this function:

◆ DumpNumber()

static void DumpNumber ( lua_Number  x,
DumpState D 
)
static
Here is the caller graph for this function:

◆ DumpProtos()

static void DumpProtos ( const Proto f,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpString()

static void DumpString ( const TString s,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ DumpUpvalues()

static void DumpUpvalues ( const Proto f,
DumpState D 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaU_dump()

int luaU_dump ( lua_State L,
const Proto f,
lua_Writer  w,
void data,
int  strip 
)
Here is the call graph for this function:
Here is the caller graph for this function: