From c1859c3bab84dd1e712b946f4976702cfd9db5d2 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 28 Oct 2024 17:24:30 +0100 Subject: Renamed _pch.h → _pch.hpp, deep.h → deep.hpp, lanes.h → lanes.hpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index b95bc0e..edac9d8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -196,7 +196,7 @@
-
	#include "lanes.h"
+
	#include "lanes.hpp"

	int load_lanes_lua(lua_State* L)
	{
@@ -1849,7 +1849,7 @@ static MyDeepFactory g_MyDeepFactory; Take a look at LindaFactory in lindafactory.cpp or MyDeepFactory in deep_test.cpp. -
  • 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. +
  • Include "_pch.hpp", "deep.hpp" 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