Macros | Enumerations | Functions
lvm.h File Reference
#include "ldo.h"
#include "lobject.h"
#include "ltm.h"
Include dependency graph for lvm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define cvt2num(o)   ttisstring(o)
 
#define cvt2str(o)   ttisnumber(o)
 
#define intop(op, v1, v2)   l_castU2S(l_castS2U(v1) op l_castS2U(v2))
 
#define LUA_FLOORN2I   F2Ieq
 
#define luaV_fastget(L, t, k, slot, f)
 
#define luaV_fastgeti(L, t, k, slot)
 
#define luaV_finishfastset(L, t, slot, v)
 
#define luaV_rawequalobj(t1, t2)   luaV_equalobj(NULL,t1,t2)
 
#define tointeger(o, i)
 
#define tointegerns(o, i)
 
#define tonumber(o, n)   (ttisfloat(o) ? (*(n) = fltvalue(o), 1) : luaV_tonumber_(o,n))
 
#define tonumberns(o, n)
 

Enumerations

enum  F2Imod { F2Ieq, F2Ifloor, F2Iceil }
 

Functions

LUAI_FUNC void luaV_concat (lua_State *L, int total)
 
LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2)
 
LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci)
 
LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key, StkId val, const TValue *slot)
 
LUAI_FUNC void luaV_finishOp (lua_State *L)
 
LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key, TValue *val, const TValue *slot)
 
LUAI_FUNC int luaV_flttointeger (lua_Number n, lua_Integer *p, F2Imod mode)
 
LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y)
 
LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r)
 
LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r)
 
LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y)
 
LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y)
 
LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb)
 
LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y)
 
LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode)
 
LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode)
 
LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n)
 

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 73 of file lvm.h.

◆ LUA_FLOORN2I

#define LUA_FLOORN2I   F2Ieq

Definition at line 36 of file lvm.h.

◆ luaV_fastget

#define luaV_fastget (   L,
  t,
  k,
  slot,
  f 
)
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 */ \
!isempty(slot))) /* result not empty? */

Definition at line 85 of file lvm.h.

◆ luaV_fastgeti

#define luaV_fastgeti (   L,
  t,
  k,
  slot 
)
Value:
(!ttistable(t) \
? (slot = NULL, 0) /* not a table; 'slot' is NULL and result is 0 */ \
: (slot = (l_castS2U(k) - 1u < hvalue(t)->alimit) \
? &hvalue(t)->array[k - 1] : luaH_getint(hvalue(t), k), \
!isempty(slot))) /* result not empty? */

Definition at line 96 of file lvm.h.

◆ luaV_finishfastset

#define luaV_finishfastset (   L,
  t,
  slot,
 
)
Value:
{ setobj2t(L, cast(TValue *,slot), v); \
luaC_barrierback(L, gcvalue(t), v); }

Definition at line 108 of file lvm.h.

◆ luaV_rawequalobj

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

Definition at line 75 of file lvm.h.

◆ tointeger

#define tointeger (   o,
 
)
Value:
(l_likely(ttisinteger(o)) ? (*(i) = ivalue(o), 1) \

Definition at line 62 of file lvm.h.

◆ tointegerns

#define tointegerns (   o,
 
)
Value:
(l_likely(ttisinteger(o)) ? (*(i) = ivalue(o), 1) \

Definition at line 68 of file lvm.h.

◆ tonumber

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

Definition at line 51 of file lvm.h.

◆ tonumberns

#define tonumberns (   o,
 
)
Value:
(ttisfloat(o) ? ((n) = fltvalue(o), 1) : \
(ttisinteger(o) ? ((n) = cast_num(ivalue(o)), 1) : 0))

Definition at line 56 of file lvm.h.

Enumeration Type Documentation

◆ F2Imod

enum F2Imod
Enumerator
F2Ieq 
F2Ifloor 
F2Iceil 

Definition at line 43 of file lvm.h.

Function Documentation

◆ luaV_concat()

LUAI_FUNC void luaV_concat ( lua_State L,
int  total 
)

Definition at line 638 of file lvm.c.

◆ luaV_equalobj()

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

Definition at line 565 of file lvm.c.

◆ luaV_execute()

LUAI_FUNC void luaV_execute ( lua_State L,
CallInfo ci 
)

Definition at line 1129 of file lvm.c.

◆ luaV_finishget()

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

Definition at line 287 of file lvm.c.

◆ luaV_finishOp()

LUAI_FUNC void luaV_finishOp ( lua_State L)

Definition at line 808 of file lvm.c.

◆ luaV_finishset()

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

Definition at line 330 of file lvm.c.

◆ luaV_flttointeger()

LUAI_FUNC int luaV_flttointeger ( lua_Number  n,
lua_Integer p,
F2Imod  mode 
)

Definition at line 121 of file lvm.c.

◆ luaV_idiv()

LUAI_FUNC lua_Integer luaV_idiv ( lua_State L,
lua_Integer  x,
lua_Integer  y 
)

Definition at line 718 of file lvm.c.

◆ luaV_lessequal()

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

Definition at line 554 of file lvm.c.

◆ luaV_lessthan()

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

Definition at line 532 of file lvm.c.

◆ luaV_mod()

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

Definition at line 738 of file lvm.c.

◆ luaV_modf()

LUAI_FUNC lua_Number luaV_modf ( lua_State L,
lua_Number  x,
lua_Number  y 
)

Definition at line 756 of file lvm.c.

◆ luaV_objlen()

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

Definition at line 683 of file lvm.c.

◆ luaV_shiftl()

LUAI_FUNC lua_Integer luaV_shiftl ( lua_Integer  x,
lua_Integer  y 
)

Definition at line 771 of file lvm.c.

◆ luaV_tointeger()

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

Definition at line 152 of file lvm.c.

◆ luaV_tointegerns()

LUAI_FUNC int luaV_tointegerns ( const TValue obj,
lua_Integer p,
F2Imod  mode 
)

Definition at line 137 of file lvm.c.

◆ luaV_tonumber_()

LUAI_FUNC int luaV_tonumber_ ( const TValue obj,
lua_Number n 
)

Definition at line 103 of file lvm.c.

cast
#define cast(t, exp)
Definition: llimits.h:123
ttistable
#define ttistable(o)
Definition: lobject.h:667
isempty
#define isempty(v)
Definition: lobject.h:204
gcvalue
#define gcvalue(o)
Definition: lobject.h:292
ttisinteger
#define ttisinteger(o)
Definition: lobject.h:315
luaH_getint
const TValue * luaH_getint(Table *t, lua_Integer key)
Definition: ltable.c:719
f
f
fltvalue
#define fltvalue(o)
Definition: lobject.h:319
ivalue
#define ivalue(o)
Definition: lobject.h:320
setobj2t
#define setobj2t
Definition: lobject.h:135
LUA_FLOORN2I
#define LUA_FLOORN2I
Definition: lvm.h:36
l_castS2U
#define l_castS2U(i)
Definition: llimits.h:139
luaV_tointeger
LUAI_FUNC int luaV_tointeger(const TValue *obj, lua_Integer *p, F2Imod mode)
Definition: lvm.c:152
luaV_tointegerns
LUAI_FUNC int luaV_tointegerns(const TValue *obj, lua_Integer *p, F2Imod mode)
Definition: lvm.c:137
hvalue
#define hvalue(o)
Definition: lobject.h:669
cast_num
#define cast_num(i)
Definition: llimits.h:127
TValue
Definition: lobject.h:65
ttisfloat
#define ttisfloat(o)
Definition: lobject.h:314


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28