move binding function declarations to headers.

This commit is contained in:
Enno Rehling 2019-12-01 17:07:09 +01:00
parent 633866c814
commit b0792b57e9
4 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,8 @@
#include <lua.h> #include <lua.h>
void tolua_bind_open(lua_State * L) { void tolua_bind_open(lua_State * L)
{
tolua_eressea_open(L); tolua_eressea_open(L);
tolua_process_open(L); tolua_process_open(L);
tolua_settings_open(L); tolua_settings_open(L);

View File

@ -3,6 +3,7 @@
#endif #endif
#include "bindings.h" #include "bindings.h"
#include "bind_tolua.h"
#include "console.h" #include "console.h"
#include "gamedb.h" #include "gamedb.h"
@ -865,8 +866,6 @@ static int lua_rng_default(lua_State *L) {
return 0; return 0;
} }
void tolua_bind_open(lua_State * L);
int tolua_bindings_open(lua_State * L, const dictionary *inifile) int tolua_bindings_open(lua_State * L, const dictionary *inifile)
{ {
tolua_open(L); tolua_open(L);

View File

@ -12,6 +12,8 @@ extern "C" {
int tolua_selist_push(struct lua_State *L, const char *list_type, int tolua_selist_push(struct lua_State *L, const char *list_type,
const char *elem_type, struct selist *list); const char *elem_type, struct selist *list);
void bind_monsters(struct lua_State *L);
int log_lua_error(struct lua_State *L); int log_lua_error(struct lua_State *L);
void lua_done(struct lua_State *L); void lua_done(struct lua_State *L);

View File

@ -290,8 +290,6 @@ void locale_init(void)
} }
} }
extern void bind_monsters(lua_State *L);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int err = 0; int err = 0;