Skip to content
Snippets Groups Projects
Commit c342f1a5 authored by neil's avatar neil
Browse files

Since the lua externs are now used in main.c and in te4-xmpp.c, it's time to move them to a header

git-svn-id: http://svn.net-core.org/repos/t-engine4@1413 51575b47-30f0-44d4-a5cc-537603b46e54
parent 2e68c9b3
No related branches found
No related tags found
No related merge requests found
/* Some lua stuff that's external but has no headers */
int luaopen_socket_core(lua_State *L);
int luaopen_mime_core(lua_State *L);
int luaopen_profiler(lua_State *L);
int luaopen_lpeg(lua_State *L);
int luaopen_map(lua_State *L);
int luaopen_particles(lua_State *L);
int luaopen_sound(lua_State *L);
int luaopen_lanes(lua_State *L);
int luaopen_shaders(lua_State *L);
int luaopen_struct(lua_State *L);
int luaopen_noise(lua_State *L);
int luaopen_lxp(lua_State *L);
......@@ -28,6 +28,7 @@
#include "lualib.h"
#include "luasocket.h"
#include "luasocket/mime.h"
#include "lua_externs.h"
#include "SFMT.h"
#include "types.h"
......@@ -59,18 +60,6 @@ extern bool shaders_active;
bool fbo_active;
bool multitexture_active;
/* Some lua stuff that's external but has no headers */
int luaopen_mime_core(lua_State *L);
int luaopen_profiler(lua_State *L);
int luaopen_lpeg(lua_State *L);
int luaopen_map(lua_State *L);
int luaopen_particles(lua_State *L);
int luaopen_sound(lua_State *L);
int luaopen_lanes(lua_State *L);
int luaopen_shaders(lua_State *L);
int luaopen_noise(lua_State *L);
int luaopen_lxp(lua_State *L);
static int traceback (lua_State *L) {
lua_Debug ar;
int n;
......@@ -377,7 +366,6 @@ void gl_select(int x, int y)
{
GLuint buff[64] = {0};
GLint hits, view[4];
int id;
/*
This choose the buffer where store the values for the selection data
......
......@@ -22,9 +22,11 @@
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "core_lua.h"
#include "tSDL.h"
#include "types.h"
#include "te4-xmpp.h"
#include "lua_externs.h"
extern int docall (lua_State *L, int narg, int nret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment