summaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2012-11-18 16:22:49 +0100
committerBenoit Germain <bnt.germain@gmail.com>2012-11-18 16:22:49 +0100
commit2ff1905501d19199ddbb7d035f36ca7a41705a6a (patch)
treed52f9eeebf6317a66cdf529273c6a0860366b9c6 /src/tools.h
parent518d7ba7bf9ff18fb60e9f304465164c9b068a99 (diff)
downloadlanes-2ff1905501d19199ddbb7d035f36ca7a41705a6a.tar.gz
lanes-2ff1905501d19199ddbb7d035f36ca7a41705a6a.tar.bz2
lanes-2ff1905501d19199ddbb7d035f36ca7a41705a6a.zip
Separated public "deep" API declarations in a dedicated header.
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/tools.h b/src/tools.h
index 43582c5..4a77a6a 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -6,6 +6,7 @@
6 6
7#include "lauxlib.h" 7#include "lauxlib.h"
8#include "threading.h" 8#include "threading.h"
9#include "deep.h"
9 // MUTEX_T 10 // MUTEX_T
10 11
11#include <assert.h> 12#include <assert.h>
@@ -63,15 +64,10 @@
63 64
64#define luaG_isany(L,i) (!lua_isnil(L,i)) 65#define luaG_isany(L,i) (!lua_isnil(L,i))
65 66
66typedef void (*luaG_IdFunction)( lua_State *L, char const * const which);
67
68void luaG_dump( lua_State* L ); 67void luaG_dump( lua_State* L );
69 68
70lua_State* luaG_newstate( char const* libs, lua_CFunction _on_state_create); 69lua_State* luaG_newstate( char const* libs, lua_CFunction _on_state_create);
71 70
72int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc);
73void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index );
74
75typedef struct { 71typedef struct {
76 volatile int refcount; 72 volatile int refcount;
77 void *deep; 73 void *deep;