From 77630de350fc89038378c798cd482ed751280fc2 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 17 Jun 2014 16:34:31 +0200 Subject: Deep userdata changes * bumped version to 3.9.6 * separate deep userdata code in a dedicated file to allow external modules to implement Lanes-compatible deep userdata without requiring a binary dependency against the Lanes module. because of this linda_id function(eDO_metatable) must push 2 values on the stack: a metatable and a deep version string obtained from luaG_pushdeepversion() --- src/deep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/deep.h') diff --git a/src/deep.h b/src/deep.h index e1f2c4f..8e999d6 100644 --- a/src/deep.h +++ b/src/deep.h @@ -27,5 +27,6 @@ typedef void* (*luaG_IdFunction)( lua_State* L, enum eDeepOp op_); extern LANES_API int luaG_newdeepuserdata( lua_State* L, luaG_IdFunction idfunc); extern LANES_API void* luaG_todeep( lua_State* L, luaG_IdFunction idfunc, int index); +extern LANES_API void luaG_pushdeepversion( lua_State* L); #endif // __LANES_DEEP_H__ -- cgit v1.2.3-55-g6feb