diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:24:30 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-28 17:24:30 +0100 |
commit | c1859c3bab84dd1e712b946f4976702cfd9db5d2 (patch) | |
tree | 760bc5caf416e27eeea66e7a9e517db092286e3a /docs | |
parent | 0c23f179a46f919adf075b46f4cb8cbff3fc8ebb (diff) | |
download | lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.tar.gz lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.tar.bz2 lanes-c1859c3bab84dd1e712b946f4976702cfd9db5d2.zip |
Renamed _pch.h → _pch.hpp, deep.h → deep.hpp, lanes.h → lanes.hpp
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
196 | <table border="1" bgcolor="#FFFFE0" cellpadding="10" style="width:50%"> | 196 | <table border="1" bgcolor="#FFFFE0" cellpadding="10" style="width:50%"> |
197 | <tr> | 197 | <tr> |
198 | <td> | 198 | <td> |
199 | <pre> #include "lanes.h"</pre> | 199 | <pre> #include "lanes.hpp"</pre> |
200 | <br /> | 200 | <br /> |
201 | <pre> int load_lanes_lua(lua_State* L)</pre> | 201 | <pre> int load_lanes_lua(lua_State* L)</pre> |
202 | <pre> {</pre> | 202 | <pre> {</pre> |
@@ -1849,7 +1849,7 @@ static MyDeepFactory g_MyDeepFactory; | |||
1849 | </ul> | 1849 | </ul> |
1850 | Take a look at <tt>LindaFactory</tt> in <tt>lindafactory.cpp</tt> or <tt>MyDeepFactory</tt> in <tt>deep_test.cpp</tt>. | 1850 | Take a look at <tt>LindaFactory</tt> in <tt>lindafactory.cpp</tt> or <tt>MyDeepFactory</tt> in <tt>deep_test.cpp</tt>. |
1851 | </li> | 1851 | </li> |
1852 | <li>Include <tt>"_pch.h", "deep.h"</tt> and either link against Lanes or statically compile <tt>compat.cpp deep.cpp</tt> into your module if you want to avoid a runtime dependency for users that will use your module without Lanes. | 1852 | <li>Include <tt>"_pch.hpp", "deep.hpp"</tt> and either link against Lanes or statically compile <tt>compat.cpp deep.cpp</tt> into your module if you want to avoid a runtime dependency for users that will use your module without Lanes. |
1853 | <li>Instanciate your userdata using <tt>yourFactoryObject.pushDeepUserdata()</tt>, instead of the regular <tt>lua_newuserdata()</tt>. Given a <tt>factory</tt>, 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.</li> | 1853 | <li>Instanciate your userdata using <tt>yourFactoryObject.pushDeepUserdata()</tt>, instead of the regular <tt>lua_newuserdata()</tt>. Given a <tt>factory</tt>, 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.</li> |
1854 | <li>Accessing the deep userdata from your C code, use <tt>yourFactoryObject.toDeep()</tt> instead of the regular <tt>lua_touserdata()</tt>.</li> | 1854 | <li>Accessing the deep userdata from your C code, use <tt>yourFactoryObject.toDeep()</tt> instead of the regular <tt>lua_touserdata()</tt>.</li> |
1855 | <li>To push an existing proxy on the stack, use <tt>DeepPrelude::push(L)</tt>.</li> | 1855 | <li>To push an existing proxy on the stack, use <tt>DeepPrelude::push(L)</tt>.</li> |