lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Luiz Henrique de Figueiredo skrev:
What changes have you made to luaconf.h?
How do you build Lua? If possible, try "make ansi".


I've changed to:

#define LUA_PATH_DEFAULT "?;bin/?;src/?;const/?;?.lua;src/?.lua"
#define LUA_CPATH_DEFAULT "?"


#define LUAI_GCPAUSE    100
#define LUAI_GCMUL    100


and added:

#define lua_boxpointer(L,u) \
   (*(void **)(lua_newuserdata(L, sizeof(void *))) = (u))

#define lua_unboxpointer(L,i)    (*(void **)(lua_touserdata(L, i)))

in luaconf.h and build it without extra defines (as 'generic' target).
Will try the ansi target..

I've set up a new make file in our project to fit the rest of the build environment in use.

//Andreas