Go to the documentation of this file.
35 #define dumpVector(D,v,n) dumpBlock(D,v,(n)*sizeof((v)[0]))
37 #define dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char))
41 if (
D->status == 0 &&
size > 0) {
43 D->status = (*
D->writer)(
D->L, b,
size,
D->data);
49 #define dumpVar(D,x) dumpVector(D,&x,1)
59 #define DIBS ((sizeof(size_t) * 8 / 7) + 1)
65 buff[
DIBS - (++n)] =
x & 0x7f;
68 buff[
DIBS - 1] |= 0x80;
112 for (i = 0; i < n; i++) {
138 for (i = 0; i < n; i++)
144 int i, n =
f->sizeupvalues;
146 for (i = 0; i < n; i++) {
156 n = (
D->strip) ? 0 :
f->sizelineinfo;
159 n = (
D->strip) ? 0 :
f->sizeabslineinfo;
161 for (i = 0; i < n; i++) {
165 n = (
D->strip) ? 0 :
f->sizelocvars;
167 for (i = 0; i < n; i++) {
172 n = (
D->strip) ? 0 :
f->sizeupvalues;
174 for (i = 0; i < n; i++)
180 if (
D->strip ||
f->source == psource)
static void dumpDebug(DumpState *D, const Proto *f)
int(* lua_Writer)(lua_State *L, const void *p, size_t sz, void *ud)
static void dumpBlock(DumpState *D, const void *b, size_t size)
static void dumpString(DumpState *D, const TString *s)
static void dumpConstants(DumpState *D, const Proto *f)
#define dumpVector(D, v, n)
static void dumpSize(DumpState *D, size_t x)
span_constexpr std::size_t size(span< T, Extent > const &spn)
static void dumpHeader(DumpState *D)
static void dumpNumber(DumpState *D, lua_Number x)
static void dumpUpvalues(DumpState *D, const Proto *f)
static void dumpCode(DumpState *D, const Proto *f)
#define dumpLiteral(D, s)
static void dumpByte(DumpState *D, int y)
static void dumpInt(DumpState *D, int x)
static void dumpFunction(DumpState *D, const Proto *f, TString *psource)
static void dumpInteger(DumpState *D, lua_Integer x)
static void dumpProtos(DumpState *D, const Proto *f)
int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44