From 44c617f7b756052c7cd059c96f89b85f0f5ec96c Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 3 Jun 2024 15:53:34 +0200 Subject: Moved lanes.sleep implementation to the C-side --- docs/index.html | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 98c2abb..c3e8285 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1767,6 +1767,7 @@ static MyDeepFactory g_MyDeepFactory;
  • Include "deep.h" and either link against Lanes or statically compile compat.cpp deep.cpp into your module if you want to avoid a runtime dependency for users that will use your module without Lanes.
  • Instanciate your userdata using yourFactoryObject.pushDeepUserdata(), instead of the regular lua_newuserdata(). Given a factory, it sets up the support structures and returns a state-specific proxy userdata for accessing your data. This proxy can also be copied over to other lanes.
  • Accessing the deep userdata from your C code, use yourFactoryObject.toDeep() instead of the regular lua_touserdata().
  • +
  • To push an existing proxy on the stack, use DeepPrelude::push(L).
  • -- cgit v1.2.3-55-g6feb