lua-gmtool kompiliert unter linux

This commit is contained in:
Enno Rehling 2006-04-16 13:04:52 +00:00
parent 4316903e9a
commit ec1f6c9963
3 changed files with 4 additions and 5 deletions

View File

@ -68,5 +68,5 @@ LinkLibraries $(GMTOOL) :
kernel modules items attributes spells races triggers util ;
luabind $(GMTOOL) ;
libxml2 $(GMTOOL) ;
LINKLIBS on $(GMTOOL) += -lm -lncurses ;
LINKLIBS on $(GMTOOL) += -lm -lncurses -ldl -lstdc++ ;
Main $(GMTOOL) : $(GMTOOL_SOURCES) ;

View File

@ -168,8 +168,8 @@ lua_console(lua_State * L)
lua_getglobal(L, "print");
lua_insert(L, 1);
if (lua_pcall(L, lua_gettop(L)-1, 0, 0) != 0)
l_message(NULL, lua_pushfstring(L, "error calling `print' (%s)",
lua_tostring(L, -1)));
l_message(NULL, lua_pushfstring(L, "error calling `print' (%s)",
lua_tostring(L, -1)));
}
}
lua_settop(L, 0); /* clear stack */

View File

@ -14,7 +14,7 @@
#ifdef __cplusplus
extern "C" {
#endif
struct lua_State;
extern int gmmain(int argc, char *argv[]);
extern int curses_readline(struct lua_State * L, const char * prompt);
@ -22,5 +22,4 @@ extern "C" {
}
#endif
#endif