|
native Lua
0.4.0
Lua on the platform you use with the compiler you choose
|
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
|
| #define | lvm_c |
| |
| #define | LUA_CORE |
| |
| #define | MAXTAGLOOP 2000 |
| |
| #define | NBM (l_mathlim(MANT_DIG)) |
| |
| #define | tostring(L, o) (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1))) |
| |
| #define | isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0) |
| |
| #define | NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
| |
| #define | RA(i) (base+GETARG_A(i)) |
| |
| #define | RB(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgR, base+GETARG_B(i)) |
| |
| #define | RC(i) check_exp(getCMode(GET_OPCODE(i)) == OpArgR, base+GETARG_C(i)) |
| |
| #define | RKB(i) |
| |
| #define | RKC(i) |
| |
| #define | dojump(ci, i, e) |
| |
| #define | donextjump(ci) { i = *ci->u.l.savedpc; dojump(ci, i, 1); } |
| |
| #define | Protect(x) { {x;}; base = ci->u.l.base; } |
| |
| #define | checkGC(L, c) |
| |
| #define | vmfetch() |
| |
| #define | vmdispatch(o) switch(o) |
| |
| #define | vmcase(l) case l: |
| |
| #define | vmbreak break |
| |
| #define | gettableProtected(L, t, k, v) |
| |
| #define | settableProtected(L, t, k, v) |
| |
|
| int | luaV_tonumber_ (const TValue *obj, lua_Number *n) |
| |
| int | luaV_tointeger (const TValue *obj, lua_Integer *p, int mode) |
| |
| void | luaV_finishget (lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot) |
| |
| void | luaV_finishset (lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot) |
| |
| int | luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) |
| |
| int | luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) |
| |
| int | luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2) |
| |
| void | luaV_concat (lua_State *L, int total) |
| |
| void | luaV_objlen (lua_State *L, StkId ra, const TValue *rb) |
| |
| lua_Integer | luaV_div (lua_State *L, lua_Integer m, lua_Integer n) |
| |
| lua_Integer | luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) |
| |
| lua_Integer | luaV_shiftl (lua_Integer x, lua_Integer y) |
| |
| void | luaV_finishOp (lua_State *L) |
| |
| void | luaV_execute (lua_State *L) |
| |
◆ checkGC
◆ dojump
| #define dojump |
( |
|
ci, |
|
|
|
i, |
|
|
|
e |
|
) |
| |
Value:
if (a != 0)
luaF_close(L, ci->u.l.base + a - 1); \
◆ donextjump
| #define donextjump |
( |
|
ci | ) |
{ i = *ci->u.l.savedpc; dojump(ci, i, 1); } |
◆ gettableProtected
| #define gettableProtected |
( |
|
L, |
|
|
|
t, |
|
|
|
k, |
|
|
|
v |
|
) |
| |
◆ isemptystr
◆ LUA_CORE
◆ lvm_c
◆ MAXTAGLOOP
◆ NBITS
◆ NBM
◆ Protect
| #define Protect |
( |
|
x | ) |
{ {x;}; base = ci->u.l.base; } |
◆ RA
◆ RB
◆ RC
◆ RKB
◆ RKC
◆ settableProtected
| #define settableProtected |
( |
|
L, |
|
|
|
t, |
|
|
|
k, |
|
|
|
v |
|
) |
| |
◆ tostring
◆ vmbreak
◆ vmcase
| #define vmcase |
( |
|
l | ) |
case l: |
◆ vmdispatch
| #define vmdispatch |
( |
|
o | ) |
switch(o) |
◆ vmfetch
Value: { \
i = *(ci->u.l.savedpc++); \
lua_assert(base == ci->u.l.base); \
lua_assert(base <= L->top && L->top < L->stack + L->stacksize); \
}
◆ luaV_concat()
| void luaV_concat |
( |
lua_State * |
L, |
|
|
int |
total |
|
) |
| |
◆ luaV_div()
◆ luaV_equalobj()
◆ luaV_execute()
◆ luaV_finishget()
◆ luaV_finishOp()
◆ luaV_finishset()
◆ luaV_lessequal()
◆ luaV_lessthan()
◆ luaV_mod()
◆ luaV_objlen()
◆ luaV_shiftl()
◆ luaV_tointeger()
◆ luaV_tonumber_()
#define INDEXK(r)
Definition: lopcodes.h:140
#define GETARG_B(i)
Definition: lopcodes.h:100
Definition: lobject.h:113
#define GETARG_A(i)
Definition: lopcodes.h:97
#define LUA_MASKLINE
Definition: lua.h:414
#define getBMode(m)
Definition: lopcodes.h:284
#define luaV_fastset(L, t, k, slot, f, v)
Definition: lvm.h:80
#define getCMode(m)
Definition: lopcodes.h:285
#define LUA_MASKCOUNT
Definition: lua.h:415
#define ISK(x)
Definition: lopcodes.h:137
void luaV_finishget(lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot)
Definition: lvm.c:160
#define RA(i)
Definition: lvm.c:728
#define setobj2s
Definition: lobject.h:271
const TValue * luaH_get(Table *t, const TValue *key)
Definition: ltable.c:589
#define GETARG_sBx(i)
Definition: lopcodes.h:112
@ OpArgK
Definition: lopcodes.h:278
#define Protect(x)
Definition: lvm.c:747
#define GET_OPCODE(i)
Definition: lopcodes.h:89
#define luaV_fastget(L, t, k, slot, f)
Definition: lvm.h:58
#define luaC_condGC(L, pre, pos)
Definition: lgc.h:110
#define GETARG_C(i)
Definition: lopcodes.h:103
void luaG_traceexec(lua_State *L)
Definition: ldebug.c:666
void luaV_finishset(lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot)
Definition: lvm.c:203
void luaF_close(lua_State *L, StkId level)
Definition: lfunc.c:83
#define check_exp(c, e)
Definition: llimits.h:90