aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.c
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-06-17 16:34:31 +0200
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-06-17 16:34:31 +0200
commit77630de350fc89038378c798cd482ed751280fc2 (patch)
treef804d15dab8cd6ba1d57508719e738c12327eba9 /src/lanes.c
parent55e53f8a24ce42cadfd2887e50bf0248eb10d301 (diff)
downloadlanes-77630de350fc89038378c798cd482ed751280fc2.tar.gz
lanes-77630de350fc89038378c798cd482ed751280fc2.tar.bz2
lanes-77630de350fc89038378c798cd482ed751280fc2.zip
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()
Diffstat (limited to 'src/lanes.c')
-rw-r--r--src/lanes.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lanes.c b/src/lanes.c
index f45dac7..6acc711 100644
--- a/src/lanes.c
+++ b/src/lanes.c
@@ -52,7 +52,7 @@
52 * ... 52 * ...
53 */ 53 */
54 54
55char const* VERSION = "3.9.5"; 55char const* VERSION = "3.9.6";
56 56
57/* 57/*
58=============================================================================== 58===============================================================================
@@ -1248,7 +1248,8 @@ static void* linda_id( lua_State* L, enum eDeepOp op_)
1248 lua_pushlightuserdata( L, NIL_SENTINEL); 1248 lua_pushlightuserdata( L, NIL_SENTINEL);
1249 lua_setfield(L, -2, "null"); 1249 lua_setfield(L, -2, "null");
1250 1250
1251 STACK_END( L, 1); 1251 luaG_pushdeepversion( L);
1252 STACK_END( L, 2);
1252 return NULL; 1253 return NULL;
1253 } 1254 }
1254 1255