forked from github/server
lua-gmtool kompiliert unter linux
This commit is contained in:
parent
4316903e9a
commit
ec1f6c9963
|
@ -68,5 +68,5 @@ LinkLibraries $(GMTOOL) :
|
||||||
kernel modules items attributes spells races triggers util ;
|
kernel modules items attributes spells races triggers util ;
|
||||||
luabind $(GMTOOL) ;
|
luabind $(GMTOOL) ;
|
||||||
libxml2 $(GMTOOL) ;
|
libxml2 $(GMTOOL) ;
|
||||||
LINKLIBS on $(GMTOOL) += -lm -lncurses ;
|
LINKLIBS on $(GMTOOL) += -lm -lncurses -ldl -lstdc++ ;
|
||||||
Main $(GMTOOL) : $(GMTOOL_SOURCES) ;
|
Main $(GMTOOL) : $(GMTOOL_SOURCES) ;
|
||||||
|
|
|
@ -168,8 +168,8 @@ lua_console(lua_State * L)
|
||||||
lua_getglobal(L, "print");
|
lua_getglobal(L, "print");
|
||||||
lua_insert(L, 1);
|
lua_insert(L, 1);
|
||||||
if (lua_pcall(L, lua_gettop(L)-1, 0, 0) != 0)
|
if (lua_pcall(L, lua_gettop(L)-1, 0, 0) != 0)
|
||||||
l_message(NULL, lua_pushfstring(L, "error calling `print' (%s)",
|
l_message(NULL, lua_pushfstring(L, "error calling `print' (%s)",
|
||||||
lua_tostring(L, -1)));
|
lua_tostring(L, -1)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lua_settop(L, 0); /* clear stack */
|
lua_settop(L, 0); /* clear stack */
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
struct lua_State;
|
||||||
extern int gmmain(int argc, char *argv[]);
|
extern int gmmain(int argc, char *argv[]);
|
||||||
extern int curses_readline(struct lua_State * L, const char * prompt);
|
extern int curses_readline(struct lua_State * L, const char * prompt);
|
||||||
|
|
||||||
|
@ -22,5 +22,4 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue