The Witchcraft Compiler Collection
WCC
 All Data Structures Files Functions Variables Typedefs Macros
Macros
luaconf.h File Reference
#include <limits.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define LUAI_BITSINT   16
 
#define LUA_INT_INT   1
 
#define LUA_INT_LONG   2
 
#define LUA_INT_LONGLONG   3
 
#define LUA_FLOAT_FLOAT   1
 
#define LUA_FLOAT_DOUBLE   2
 
#define LUA_FLOAT_LONGDOUBLE   3
 
#define LUA_INT_TYPE   LUA_INT_LONGLONG
 
#define LUA_FLOAT_TYPE   LUA_FLOAT_DOUBLE
 
#define LUA_VDIR   LUA_VERSION_MAJOR "." LUA_VERSION_MINOR
 
#define LUA_ROOT   "/usr/local/"
 
#define LUA_LDIR   LUA_ROOT "share/lua/" LUA_VDIR "/"
 
#define LUA_CDIR   LUA_ROOT "lib/lua/" LUA_VDIR "/"
 
#define LUA_PATH_DEFAULT
 
#define LUA_CPATH_DEFAULT   LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"
 
#define LUA_DIRSEP   "/"
 
#define LUA_API   extern
 
#define LUALIB_API   LUA_API
 
#define LUAMOD_API   LUALIB_API
 
#define LUAI_FUNC   extern
 
#define LUAI_DDEC   LUAI_FUNC
 
#define LUAI_DDEF   /* empty */
 
#define l_floor(x)   (l_mathop(floor)(x))
 
#define lua_number2str(s, sz, n)   l_sprintf((s), sz, LUA_NUMBER_FMT, (n))
 
#define lua_numbertointeger(n, p)
 
#define LUA_NUMBER   double
 
#define l_mathlim(n)   (DBL_##n)
 
#define LUAI_UACNUMBER   double
 
#define LUA_NUMBER_FRMLEN   ""
 
#define LUA_NUMBER_FMT   "%.14g"
 
#define l_mathop(op)   op
 
#define lua_str2number(s, p)   strtod((s), (p))
 
#define LUA_INTEGER_FMT   "%" LUA_INTEGER_FRMLEN "d"
 
#define lua_integer2str(s, sz, n)   l_sprintf((s), sz, LUA_INTEGER_FMT, (n))
 
#define LUAI_UACINT   LUA_INTEGER
 
#define LUA_UNSIGNED   unsigned LUAI_UACINT
 
#define l_sprintf(s, sz, f, i)   snprintf(s,sz,f,i)
 
#define lua_strx2number(s, p)   lua_str2number(s,p)
 
#define lua_number2strx(L, b, sz, f, n)   l_sprintf(b,sz,f,n)
 
#define LUA_KCONTEXT   ptrdiff_t
 
#define lua_getlocaledecpoint()   (localeconv()->decimal_point[0])
 
#define LUAI_MAXSTACK   15000
 
#define LUA_EXTRASPACE   (sizeof(void *))
 
#define LUA_IDSIZE   60
 
#define LUAL_BUFFERSIZE   8192
 
#define LUA_QL(x)   "'" x "'"
 
#define LUA_QS   LUA_QL("%s")
 

Macro Definition Documentation

#define l_floor (   x)    (l_mathop(floor)(x))

Definition at line 422 of file luaconf.h.

#define l_mathlim (   n)    (DBL_##n)

Definition at line 477 of file luaconf.h.

#define l_mathop (   op)    op

Definition at line 484 of file luaconf.h.

#define l_sprintf (   s,
  sz,
  f,
 
)    snprintf(s,sz,f,i)

Definition at line 591 of file luaconf.h.

#define LUA_API   extern

Definition at line 242 of file luaconf.h.

#define LUA_CDIR   LUA_ROOT "lib/lua/" LUA_VDIR "/"

Definition at line 193 of file luaconf.h.

#define LUA_CPATH_DEFAULT   LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so"

Definition at line 198 of file luaconf.h.

#define LUA_DIRSEP   "/"

Definition at line 211 of file luaconf.h.

#define LUA_EXTRASPACE   (sizeof(void *))

Definition at line 717 of file luaconf.h.

#define LUA_FLOAT_DOUBLE   2

Definition at line 115 of file luaconf.h.

#define LUA_FLOAT_FLOAT   1

Definition at line 114 of file luaconf.h.

#define LUA_FLOAT_LONGDOUBLE   3

Definition at line 116 of file luaconf.h.

#define LUA_FLOAT_TYPE   LUA_FLOAT_DOUBLE

Definition at line 147 of file luaconf.h.

#define lua_getlocaledecpoint ( )    (localeconv()->decimal_point[0])

Definition at line 657 of file luaconf.h.

#define LUA_IDSIZE   60

Definition at line 725 of file luaconf.h.

#define LUA_INT_INT   1

Definition at line 109 of file luaconf.h.

#define LUA_INT_LONG   2

Definition at line 110 of file luaconf.h.

#define LUA_INT_LONGLONG   3

Definition at line 111 of file luaconf.h.

#define LUA_INT_TYPE   LUA_INT_LONGLONG

Definition at line 143 of file luaconf.h.

#define lua_integer2str (   s,
  sz,
 
)    l_sprintf((s), sz, LUA_INTEGER_FMT, (n))

Definition at line 514 of file luaconf.h.

#define LUA_INTEGER_FMT   "%" LUA_INTEGER_FRMLEN "d"

Definition at line 513 of file luaconf.h.

#define LUA_KCONTEXT   ptrdiff_t

Definition at line 639 of file luaconf.h.

#define LUA_LDIR   LUA_ROOT "share/lua/" LUA_VDIR "/"

Definition at line 192 of file luaconf.h.

#define LUA_NUMBER   double

Definition at line 475 of file luaconf.h.

#define lua_number2str (   s,
  sz,
 
)    l_sprintf((s), sz, LUA_NUMBER_FMT, (n))

Definition at line 424 of file luaconf.h.

#define lua_number2strx (   L,
  b,
  sz,
  f,
 
)    l_sprintf(b,sz,f,n)

Definition at line 615 of file luaconf.h.

#define LUA_NUMBER_FMT   "%.14g"

Definition at line 482 of file luaconf.h.

#define LUA_NUMBER_FRMLEN   ""

Definition at line 481 of file luaconf.h.

#define lua_numbertointeger (   n,
 
)
Value:
((n) >= (LUA_NUMBER)(LUA_MININTEGER) && \
(n) < -(LUA_NUMBER)(LUA_MININTEGER) && \
(*(p) = (LUA_INTEGER)(n), 1))
#define LUA_NUMBER
Definition: luaconf.h:475

Definition at line 434 of file luaconf.h.

#define LUA_PATH_DEFAULT
Value:
LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \
"./?.lua;" "./?/init.lua"
#define LUA_LDIR
Definition: luaconf.h:192
#define LUA_CDIR
Definition: luaconf.h:193

Definition at line 194 of file luaconf.h.

#define LUA_QL (   x)    "'" x "'"

Definition at line 749 of file luaconf.h.

#define LUA_QS   LUA_QL("%s")

Definition at line 750 of file luaconf.h.

#define LUA_ROOT   "/usr/local/"

Definition at line 191 of file luaconf.h.

#define lua_str2number (   s,
 
)    strtod((s), (p))

Definition at line 486 of file luaconf.h.

#define lua_strx2number (   s,
 
)    lua_str2number(s,p)

Definition at line 604 of file luaconf.h.

#define LUA_UNSIGNED   unsigned LUAI_UACINT

Definition at line 522 of file luaconf.h.

#define LUA_VDIR   LUA_VERSION_MAJOR "." LUA_VERSION_MINOR

Definition at line 170 of file luaconf.h.

#define LUAI_BITSINT   16

Definition at line 94 of file luaconf.h.

#define LUAI_DDEC   LUAI_FUNC

Definition at line 273 of file luaconf.h.

#define LUAI_DDEF   /* empty */

Definition at line 274 of file luaconf.h.

#define LUAI_FUNC   extern

Definition at line 270 of file luaconf.h.

#define LUAI_MAXSTACK   15000

Definition at line 708 of file luaconf.h.

#define LUAI_UACINT   LUA_INTEGER

Definition at line 516 of file luaconf.h.

#define LUAI_UACNUMBER   double

Definition at line 479 of file luaconf.h.

#define LUAL_BUFFERSIZE   8192

Definition at line 736 of file luaconf.h.

#define LUALIB_API   LUA_API

Definition at line 248 of file luaconf.h.

#define LUAMOD_API   LUALIB_API

Definition at line 249 of file luaconf.h.