From 35d7a6bb691d7e0564cda324b3d724caf4901545 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 7 Jun 2024 11:17:39 +0200 Subject: Use a precompiled header to speed up the build --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index e17c7db..b83c159 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1781,7 +1781,7 @@ static MyDeepFactory g_MyDeepFactory; Take a look at LindaFactory in lindafactory.cpp or MyDeepFactory in deep_test.cpp. -
  • 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. +
  • Include "_pch.h", "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