Ardour  9.0-pre0-582-g084a23a80d
lvm.h File Reference
#include "ldo.h"
#include "lobject.h"
#include "ltm.h"
Include dependency graph for lvm.h:

Go to the source code of this file.

Macros

#define cvt2str(o)   ttisnumber(o)
 
#define cvt2num(o)   ttisstring(o)
 
#define LUA_FLOORN2I   0
 
#define tonumber(o, n)    (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))
 
#define tointeger(o, i)    (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger(o,i,LUA_FLOORN2I))
 
#define intop(op, v1, v2)   l_castU2S(l_castS2U(v1) op l_castS2U(v2))
 
#define luaV_rawequalobj(t1, t2)   luaV_equalobj(NULL,t1,t2)
 
#define luaV_fastget(L, t, k, slot, f)
 
#define luaV_gettable(L, t, k, v)
 
#define luaV_fastset(L, t, k, slot, f, v)
 
#define luaV_settable(L, t, k, v)
 

Functions

int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2)
 
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_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)
 
void luaV_finishOp (lua_State *L)
 
void luaV_execute (lua_State *L)
 
void luaV_concat (lua_State *L, int total)
 
lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y)
 
lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y)
 
lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y)
 
void luaV_objlen (lua_State *L, StkId ra, const TValue *rb)
 

Macro Definition Documentation

◆ cvt2num

#define cvt2num (   o)    ttisstring(o)

Definition at line 24 of file lvm.h.

◆ cvt2str

#define cvt2str (   o)    ttisnumber(o)

Definition at line 17 of file lvm.h.

◆ intop

#define intop (   op,
  v1,
  v2 
)    l_castU2S(l_castS2U(v1) op l_castS2U(v2))

Definition at line 46 of file lvm.h.

◆ LUA_FLOORN2I

#define LUA_FLOORN2I   0

Definition at line 36 of file lvm.h.

◆ luaV_fastget

#define luaV_fastget (   L,
  t,
  k,
  slot,
 
)
Value:
(!ttistable(t) \
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
: (slot = f(hvalue(t), k), /* else, do raw access */ \
!ttisnil(slot))) /* result not nil? */
#define hvalue(o)
Definition: lobject.h:175
#define ttisnil(o)
Definition: lobject.h:145
#define ttistable(o)
Definition: lobject.h:151

Definition at line 58 of file lvm.h.

◆ luaV_fastset

#define luaV_fastset (   L,
  t,
  k,
  slot,
  f,
 
)
Value:
(!ttistable(t) \
? (slot = NULL, 0) \
: (slot = f(hvalue(t), k), \
ttisnil(slot) ? 0 \
: (luaC_barrierback(L, hvalue(t), v), \
setobj2t(L, cast(TValue *,slot), v), \
1)))
#define luaC_barrierback(L, p, v)
Definition: lgc.h:122
#define cast(t, exp)
Definition: llimits.h:111

Definition at line 80 of file lvm.h.

◆ luaV_gettable

#define luaV_gettable (   L,
  t,
  k,
 
)
Value:
{ const TValue *slot; \
if (luaV_fastget(L,t,k,slot,luaH_get)) { setobj2s(L, v, slot); } \
else luaV_finishget(L,t,k,v,slot); }
#define setobj2s
Definition: lobject.h:271
const TValue * luaH_get(Table *t, const TValue *key)
#define luaV_fastget(L, t, k, slot, f)
Definition: lvm.h:58
void luaV_finishget(lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot)

Definition at line 67 of file lvm.h.

◆ luaV_rawequalobj

#define luaV_rawequalobj (   t1,
  t2 
)    luaV_equalobj(NULL,t1,t2)

Definition at line 48 of file lvm.h.

◆ luaV_settable

#define luaV_settable (   L,
  t,
  k,
 
)
Value:
{ const TValue *slot; \
if (!luaV_fastset(L,t,k,slot,luaH_get,v)) \
luaV_finishset(L,t,k,v,slot); }
#define luaV_fastset(L, t, k, slot, f, v)
Definition: lvm.h:80

Definition at line 90 of file lvm.h.

◆ tointeger

#define tointeger (   o,
 
)     (ttisinteger(o) ? (*(i) = ivalue(o), 1) : luaV_tointeger(o,i,LUA_FLOORN2I))

Definition at line 43 of file lvm.h.

◆ tonumber

#define tonumber (   o,
 
)     (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))

Definition at line 40 of file lvm.h.

Function Documentation

◆ luaV_concat()

void luaV_concat ( lua_State L,
int  total 
)

◆ luaV_div()

lua_Integer luaV_div ( lua_State L,
lua_Integer  x,
lua_Integer  y 
)

◆ luaV_equalobj()

int luaV_equalobj ( lua_State L,
const TValue t1,
const TValue t2 
)

◆ luaV_execute()

void luaV_execute ( lua_State L)

◆ luaV_finishget()

void luaV_finishget ( lua_State L,
const TValue t,
TValue key,
StkId  val,
const TValue slot 
)

◆ luaV_finishOp()

void luaV_finishOp ( lua_State L)

◆ luaV_finishset()

void luaV_finishset ( lua_State L,
const TValue t,
TValue key,
StkId  val,
const TValue slot 
)

◆ luaV_lessequal()

int luaV_lessequal ( lua_State L,
const TValue l,
const TValue r 
)

◆ luaV_lessthan()

int luaV_lessthan ( lua_State L,
const TValue l,
const TValue r 
)

◆ luaV_mod()

lua_Integer luaV_mod ( lua_State L,
lua_Integer  x,
lua_Integer  y 
)

◆ luaV_objlen()

void luaV_objlen ( lua_State L,
StkId  ra,
const TValue rb 
)

◆ luaV_shiftl()

lua_Integer luaV_shiftl ( lua_Integer  x,
lua_Integer  y 
)

◆ luaV_tointeger()

int luaV_tointeger ( const TValue obj,
lua_Integer p,
int  mode 
)

◆ luaV_tonumber_()

int luaV_tonumber_ ( const TValue obj,
lua_Number n 
)