The Witchcraft Compiler Collection
WCC
 All Data Structures Files Functions Variables Typedefs Macros
Macros
mylaux.h File Reference

Go to the source code of this file.

Macros

#define luaL_newlibtable(L, l)   lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)
 
#define luaL_newlib(L, l)   (luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))
 
#define luaL_argcheck(L, cond, arg, extramsg)   ((void)((cond) || luaL_argerror(L, (arg), (extramsg))))
 
#define luaL_checkstring(L, n)   (luaL_checklstring(L, (n), NULL))
 
#define luaL_optstring(L, n, d)   (luaL_optlstring(L, (n), (d), NULL))
 
#define luaL_typename(L, i)   lua_typename(L, lua_type(L,(i)))
 
#define luaL_dofile(L, fn)   (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))
 
#define luaL_dostring(L, s)   (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))
 
#define luaL_getmetatable(L, n)   (lua_getfield(L, LUA_REGISTRYINDEX, (n)))
 
#define luaL_opt(L, f, n, d)   (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))
 
#define luaL_loadbuffer(L, s, sz, n)   luaL_loadbufferx(L,s,sz,n,NULL)
 

Macro Definition Documentation

#define luaL_argcheck (   L,
  cond,
  arg,
  extramsg 
)    ((void)((cond) || luaL_argerror(L, (arg), (extramsg))))

Definition at line 15 of file mylaux.h.

#define luaL_checkstring (   L,
 
)    (luaL_checklstring(L, (n), NULL))

Definition at line 17 of file mylaux.h.

#define luaL_dofile (   L,
  fn 
)    (luaL_loadfile(L, fn) || lua_pcall(L, 0, LUA_MULTRET, 0))

Definition at line 22 of file mylaux.h.

#define luaL_dostring (   L,
 
)    (luaL_loadstring(L, s) || lua_pcall(L, 0, LUA_MULTRET, 0))

Definition at line 25 of file mylaux.h.

#define luaL_getmetatable (   L,
 
)    (lua_getfield(L, LUA_REGISTRYINDEX, (n)))

Definition at line 28 of file mylaux.h.

#define luaL_loadbuffer (   L,
  s,
  sz,
 
)    luaL_loadbufferx(L,s,sz,n,NULL)

Definition at line 32 of file mylaux.h.

#define luaL_newlib (   L,
 
)    (luaL_checkversion(L), luaL_newlibtable(L,l), luaL_setfuncs(L,l,0))

Definition at line 12 of file mylaux.h.

#define luaL_newlibtable (   L,
 
)    lua_createtable(L, 0, sizeof(l)/sizeof((l)[0]) - 1)

Definition at line 9 of file mylaux.h.

#define luaL_opt (   L,
  f,
  n,
 
)    (lua_isnoneornil(L,(n)) ? (d) : f(L,(n)))

Definition at line 30 of file mylaux.h.

#define luaL_optstring (   L,
  n,
 
)    (luaL_optlstring(L, (n), (d), NULL))

Definition at line 18 of file mylaux.h.

#define luaL_typename (   L,
 
)    lua_typename(L, lua_type(L,(i)))

Definition at line 20 of file mylaux.h.