[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: and/or missbehaviour in embedded lua 5.1
- From: Andreas Stenius <kaos@...>
- Date: Wed, 15 Mar 2006 14:45:10 +0100
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