Go to the documentation of this file.
28 #if !defined(luai_verifycode)
29 #define luai_verifycode(L,f)
50 #define loadVector(S,b,n) loadBlock(S,b,(n)*sizeof((b)[0]))
54 error(
S,
"truncated chunk");
58 #define loadVar(S,x) loadVector(S,&x,1)
64 error(
S,
"truncated chunk");
76 error(
S,
"integer overflow");
77 x = (
x << 7) | (b & 0x7f);
78 }
while ((b & 0x80) == 0);
139 error(
S,
"bad format for constant string");
160 for (i = 0; i < n; i++)
162 for (i = 0; i < n; i++) {
196 for (i = 0; i < n; i++)
198 for (i = 0; i < n; i++) {
217 for (i = 0; i < n; i++)
218 f->upvalues[i].name = NULL;
219 for (i = 0; i < n; i++) {
235 f->sizeabslineinfo = n;
236 for (i = 0; i < n; i++) {
243 for (i = 0; i < n; i++)
244 f->locvars[i].varname = NULL;
245 for (i = 0; i < n; i++) {
251 for (i = 0; i < n; i++)
258 if (
f->source == NULL)
275 size_t len = strlen(
s);
277 if (memcmp(
s, buff, len) != 0)
288 #define checksize(S,t) fchecksize(S,sizeof(t),#t)
294 error(
S,
"version mismatch");
296 error(
S,
"format mismatch");
302 error(
S,
"integer format mismatch");
304 error(
S,
"float format mismatch");
314 if (*name ==
'@' || *name ==
'=')
317 S.name =
"binary string";
static void loadUpvalues(LoadState *S, Proto *f)
LClosure * luaU_undump(lua_State *L, ZIO *Z, const char *name)
#define luai_verifycode(L, f)
static void checkHeader(LoadState *S)
#define luaM_newvectorchecked(L, n, t)
TString * luaS_newlstr(lua_State *L, const char *str, size_t l)
static void loadDebug(LoadState *S, Proto *f)
static void loadProtos(LoadState *S, Proto *f)
#define luaC_objbarrier(L, p, o)
size_t luaZ_read(ZIO *z, void *b, size_t n)
static void fchecksize(LoadState *S, size_t size, const char *tname)
static void loadFunction(LoadState *S, Proto *f, TString *psource)
static l_noret error(LoadState *S, const char *why)
static size_t loadUnsigned(LoadState *S, size_t limit)
static TString * loadString(LoadState *S, Proto *p)
static void loadBlock(LoadState *S, void *b, size_t size)
span_constexpr std::size_t size(span< T, Extent > const &spn)
static void loadConstants(LoadState *S, Proto *f)
static TString * loadStringN(LoadState *S, Proto *p)
#define setclLvalue2s(L, o, cl)
static int loadInt(LoadState *S)
#define setsvalue2s(L, o, s)
void luaD_inctop(lua_State *L)
static void loadCode(LoadState *S, Proto *f)
Proto * luaF_newproto(lua_State *L)
static size_t loadSize(LoadState *S)
const char * luaO_pushfstring(lua_State *L, const char *fmt,...)
static lu_byte loadByte(LoadState *S)
l_noret luaD_throw(lua_State *L, int errcode)
#define setivalue(obj, x)
#define loadVector(S, b, n)
static lua_Integer loadInteger(LoadState *S)
LClosure * luaF_newLclosure(lua_State *L, int nupvals)
#define setfltvalue(obj, x)
TString * luaS_createlngstrobj(lua_State *L, size_t l)
static lua_Number loadNumber(LoadState *S)
static void checkliteral(LoadState *S, const char *s, const char *msg)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45