aboutsummaryrefslogtreecommitdiff
path: root/src/lanes_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes_private.h')
-rw-r--r--src/lanes_private.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lanes_private.h b/src/lanes_private.h
index 1adfa31..16c178d 100644
--- a/src/lanes_private.h
+++ b/src/lanes_private.h
@@ -96,9 +96,8 @@ static inline Lane* get_lane_from_registry( lua_State* L)
96{ 96{
97 Lane* s; 97 Lane* s;
98 STACK_GROW( L, 1); 98 STACK_GROW( L, 1);
99 STACK_CHECK( L); 99 STACK_CHECK( L, 0);
100 push_unique_key( L, CANCEL_TEST_KEY); 100 REGISTRY_GET( L, CANCEL_TEST_KEY);
101 lua_rawget( L, LUA_REGISTRYINDEX);
102 s = lua_touserdata( L, -1); // lightuserdata (true 's_lane' pointer) / nil 101 s = lua_touserdata( L, -1); // lightuserdata (true 's_lane' pointer) / nil
103 lua_pop( L, 1); 102 lua_pop( L, 1);
104 STACK_END( L, 0); 103 STACK_END( L, 0);