aboutsummaryrefslogtreecommitdiff
path: root/deep_userdata_example
diff options
context:
space:
mode:
Diffstat (limited to 'deep_userdata_example')
-rw-r--r--deep_userdata_example/deep_userdata_example.cpp16
-rw-r--r--deep_userdata_example/deep_userdata_example.vcxproj221
-rw-r--r--deep_userdata_example/deeptest.lua2
3 files changed, 218 insertions, 21 deletions
diff --git a/deep_userdata_example/deep_userdata_example.cpp b/deep_userdata_example/deep_userdata_example.cpp
index 075cfbe..6845ff1 100644
--- a/deep_userdata_example/deep_userdata_example.cpp
+++ b/deep_userdata_example/deep_userdata_example.cpp
@@ -25,7 +25,7 @@ class MyDeepFactory final : public DeepFactory
25 25
26// ################################################################################################# 26// #################################################################################################
27 27
28// a lanes-deep userdata. needs DeepPrelude and luaG_newdeepuserdata from Lanes code. 28// a lanes-deep userdata. needs DeepPrelude and luaW_newdeepuserdata from Lanes code.
29struct MyDeepUserdata : public DeepPrelude // Deep userdata MUST start with a DeepPrelude 29struct MyDeepUserdata : public DeepPrelude // Deep userdata MUST start with a DeepPrelude
30{ 30{
31 std::atomic<int> inUse{}; 31 std::atomic<int> inUse{};
@@ -82,7 +82,7 @@ static int deep_tostring(lua_State* const L_)
82{ 82{
83 MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L_, StackIndex{ 1 })) }; 83 MyDeepUserdata* const _self{ static_cast<MyDeepUserdata*>(MyDeepFactory::Instance.toDeep(L_, StackIndex{ 1 })) };
84 _self->inUse.fetch_add(1, std::memory_order_seq_cst); 84 _self->inUse.fetch_add(1, std::memory_order_seq_cst);
85 luaG_pushstring(L_, "%p:deep(%d)", _self, _self->val); 85 luaW_pushstring(L_, "%p:deep(%d)", _self, _self->val);
86 _self->inUse.fetch_sub(1, std::memory_order_seq_cst); 86 _self->inUse.fetch_sub(1, std::memory_order_seq_cst);
87 return 1; 87 return 1;
88} 88}
@@ -241,7 +241,7 @@ static int clonable_getuv(lua_State* const L_)
241static int clonable_tostring(lua_State* const L_) 241static int clonable_tostring(lua_State* const L_)
242{ 242{
243 MyClonableUserdata* _self = static_cast<MyClonableUserdata*>(lua_touserdata(L_, 1)); 243 MyClonableUserdata* _self = static_cast<MyClonableUserdata*>(lua_touserdata(L_, 1));
244 luaG_pushstring(L_, "%p:clonable(%d)", lua_topointer(L_, 1), _self->val); 244 luaW_pushstring(L_, "%p:clonable(%d)", lua_topointer(L_, 1), _self->val);
245 return 1; 245 return 1;
246} 246}
247 247
@@ -299,7 +299,7 @@ int luaD_new_clonable(lua_State* L)
299{ 299{
300 UserValueCount const _nuv{ static_cast<int>(luaL_optinteger(L, 1, 1)) }; 300 UserValueCount const _nuv{ static_cast<int>(luaL_optinteger(L, 1, 1)) };
301 lua_newuserdatauv(L, sizeof(MyClonableUserdata), _nuv); 301 lua_newuserdatauv(L, sizeof(MyClonableUserdata), _nuv);
302 luaG_setmetatable(L, "clonable"); 302 luaW_setmetatable(L, "clonable");
303 return 1; 303 return 1;
304} 304}
305 305
@@ -307,7 +307,7 @@ int luaD_new_clonable(lua_State* L)
307// ################################################################################################# 307// #################################################################################################
308 308
309static luaL_Reg const deep_module[] = { 309static luaL_Reg const deep_module[] = {
310 { "get_deep_count", luaD_get_deep_count }, 310 { "get_deep_count", luaD_get_deep_count },
311 { "new_deep", luaD_new_deep }, 311 { "new_deep", luaD_new_deep },
312 { "new_clonable", luaD_new_clonable }, 312 { "new_clonable", luaD_new_clonable },
313 { nullptr, nullptr } 313 { nullptr, nullptr }
@@ -317,12 +317,12 @@ static luaL_Reg const deep_module[] = {
317 317
318LANES_API int luaopen_deep_userdata_example(lua_State* L) 318LANES_API int luaopen_deep_userdata_example(lua_State* L)
319{ 319{
320 luaG_newlib<std::size(deep_module)>(L, deep_module); // M 320 luaW_newlib<std::size(deep_module)>(L, deep_module); // M
321 321
322 // preregister the metatables for the types we can instantiate so that Lanes can know about them 322 // preregister the metatables for the types we can instantiate so that Lanes can know about them
323 if (luaL_newmetatable(L, "clonable")) // M mt 323 if (luaL_newmetatable(L, "clonable")) // M mt
324 { 324 {
325 luaG_registerlibfuncs(L, clonable_mt); 325 luaW_registerlibfuncs(L, clonable_mt);
326 lua_pushvalue(L, -1); // M mt mt 326 lua_pushvalue(L, -1); // M mt mt
327 lua_setfield(L, -2, "__index"); // M mt 327 lua_setfield(L, -2, "__index"); // M mt
328 } 328 }
@@ -330,7 +330,7 @@ LANES_API int luaopen_deep_userdata_example(lua_State* L)
330 330
331 if (luaL_newmetatable(L, "deep")) // mt 331 if (luaL_newmetatable(L, "deep")) // mt
332 { 332 {
333 luaG_registerlibfuncs(L, deep_mt); 333 luaW_registerlibfuncs(L, deep_mt);
334 lua_pushvalue(L, -1); // mt mt 334 lua_pushvalue(L, -1); // mt mt
335 lua_setfield(L, -2, "__index"); // mt 335 lua_setfield(L, -2, "__index"); // mt
336 } 336 }
diff --git a/deep_userdata_example/deep_userdata_example.vcxproj b/deep_userdata_example/deep_userdata_example.vcxproj
index 54db35a..bea5edd 100644
--- a/deep_userdata_example/deep_userdata_example.vcxproj
+++ b/deep_userdata_example/deep_userdata_example.vcxproj
@@ -45,6 +45,30 @@
45 <Configuration>Debug 5.4</Configuration> 45 <Configuration>Debug 5.4</Configuration>
46 <Platform>x64</Platform> 46 <Platform>x64</Platform>
47 </ProjectConfiguration> 47 </ProjectConfiguration>
48 <ProjectConfiguration Include="Debug 5.5|Prospero">
49 <Configuration>Debug 5.5</Configuration>
50 <Platform>Prospero</Platform>
51 </ProjectConfiguration>
52 <ProjectConfiguration Include="Debug 5.5|Win32">
53 <Configuration>Debug 5.5</Configuration>
54 <Platform>Win32</Platform>
55 </ProjectConfiguration>
56 <ProjectConfiguration Include="Debug 5.5|x64">
57 <Configuration>Debug 5.5</Configuration>
58 <Platform>x64</Platform>
59 </ProjectConfiguration>
60 <ProjectConfiguration Include="Release 5.5|Prospero">
61 <Configuration>Release 5.5</Configuration>
62 <Platform>Prospero</Platform>
63 </ProjectConfiguration>
64 <ProjectConfiguration Include="Release 5.5|Win32">
65 <Configuration>Release 5.5</Configuration>
66 <Platform>Win32</Platform>
67 </ProjectConfiguration>
68 <ProjectConfiguration Include="Release 5.5|x64">
69 <Configuration>Release 5.5</Configuration>
70 <Platform>x64</Platform>
71 </ProjectConfiguration>
48 <ProjectConfiguration Include="Release LuaJIT|Prospero"> 72 <ProjectConfiguration Include="Release LuaJIT|Prospero">
49 <Configuration>Release LuaJIT</Configuration> 73 <Configuration>Release LuaJIT</Configuration>
50 <Platform>Prospero</Platform> 74 <Platform>Prospero</Platform>
@@ -173,6 +197,12 @@
173 <PlatformToolset>v143</PlatformToolset> 197 <PlatformToolset>v143</PlatformToolset>
174 <CharacterSet>MultiByte</CharacterSet> 198 <CharacterSet>MultiByte</CharacterSet>
175 </PropertyGroup> 199 </PropertyGroup>
200 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|Win32'" Label="Configuration">
201 <ConfigurationType>DynamicLibrary</ConfigurationType>
202 <UseDebugLibraries>true</UseDebugLibraries>
203 <PlatformToolset>v143</PlatformToolset>
204 <CharacterSet>MultiByte</CharacterSet>
205 </PropertyGroup>
176 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'" Label="Configuration"> 206 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'" Label="Configuration">
177 <ConfigurationType>DynamicLibrary</ConfigurationType> 207 <ConfigurationType>DynamicLibrary</ConfigurationType>
178 <UseDebugLibraries>true</UseDebugLibraries> 208 <UseDebugLibraries>true</UseDebugLibraries>
@@ -193,6 +223,13 @@
193 <WholeProgramOptimization>true</WholeProgramOptimization> 223 <WholeProgramOptimization>true</WholeProgramOptimization>
194 <CharacterSet>MultiByte</CharacterSet> 224 <CharacterSet>MultiByte</CharacterSet>
195 </PropertyGroup> 225 </PropertyGroup>
226 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|Win32'" Label="Configuration">
227 <ConfigurationType>DynamicLibrary</ConfigurationType>
228 <UseDebugLibraries>false</UseDebugLibraries>
229 <PlatformToolset>v143</PlatformToolset>
230 <WholeProgramOptimization>true</WholeProgramOptimization>
231 <CharacterSet>MultiByte</CharacterSet>
232 </PropertyGroup>
196 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'" Label="Configuration"> 233 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'" Label="Configuration">
197 <ConfigurationType>DynamicLibrary</ConfigurationType> 234 <ConfigurationType>DynamicLibrary</ConfigurationType>
198 <UseDebugLibraries>true</UseDebugLibraries> 235 <UseDebugLibraries>true</UseDebugLibraries>
@@ -237,6 +274,12 @@
237 <PlatformToolset>v143</PlatformToolset> 274 <PlatformToolset>v143</PlatformToolset>
238 <CharacterSet>MultiByte</CharacterSet> 275 <CharacterSet>MultiByte</CharacterSet>
239 </PropertyGroup> 276 </PropertyGroup>
277 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|x64'" Label="Configuration">
278 <ConfigurationType>DynamicLibrary</ConfigurationType>
279 <UseDebugLibraries>true</UseDebugLibraries>
280 <PlatformToolset>v143</PlatformToolset>
281 <CharacterSet>MultiByte</CharacterSet>
282 </PropertyGroup>
240 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'" Label="Configuration"> 283 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'" Label="Configuration">
241 <ConfigurationType>DynamicLibrary</ConfigurationType> 284 <ConfigurationType>DynamicLibrary</ConfigurationType>
242 <UseDebugLibraries>true</UseDebugLibraries> 285 <UseDebugLibraries>true</UseDebugLibraries>
@@ -257,6 +300,13 @@
257 <WholeProgramOptimization>true</WholeProgramOptimization> 300 <WholeProgramOptimization>true</WholeProgramOptimization>
258 <CharacterSet>MultiByte</CharacterSet> 301 <CharacterSet>MultiByte</CharacterSet>
259 </PropertyGroup> 302 </PropertyGroup>
303 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|x64'" Label="Configuration">
304 <ConfigurationType>DynamicLibrary</ConfigurationType>
305 <UseDebugLibraries>false</UseDebugLibraries>
306 <PlatformToolset>v143</PlatformToolset>
307 <WholeProgramOptimization>true</WholeProgramOptimization>
308 <CharacterSet>MultiByte</CharacterSet>
309 </PropertyGroup>
260 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Prospero'"> 310 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Prospero'">
261 <PlatformToolset>Clang</PlatformToolset> 311 <PlatformToolset>Clang</PlatformToolset>
262 </PropertyGroup> 312 </PropertyGroup>
@@ -266,6 +316,9 @@
266 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Prospero'"> 316 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Prospero'">
267 <PlatformToolset>Clang</PlatformToolset> 317 <PlatformToolset>Clang</PlatformToolset>
268 </PropertyGroup> 318 </PropertyGroup>
319 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|Prospero'" Label="Configuration">
320 <PlatformToolset>Clang</PlatformToolset>
321 </PropertyGroup>
269 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Prospero'"> 322 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Prospero'">
270 <PlatformToolset>Clang</PlatformToolset> 323 <PlatformToolset>Clang</PlatformToolset>
271 </PropertyGroup> 324 </PropertyGroup>
@@ -284,6 +337,9 @@
284 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Prospero'"> 337 <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Prospero'">
285 <PlatformToolset>Clang</PlatformToolset> 338 <PlatformToolset>Clang</PlatformToolset>
286 </PropertyGroup> 339 </PropertyGroup>
340 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|Prospero'" Label="Configuration">
341 <PlatformToolset>Clang</PlatformToolset>
342 </PropertyGroup>
287 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release LuaJIT|Prospero'" Label="Configuration"> 343 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release LuaJIT|Prospero'" Label="Configuration">
288 <PlatformToolset>Clang</PlatformToolset> 344 <PlatformToolset>Clang</PlatformToolset>
289 </PropertyGroup> 345 </PropertyGroup>
@@ -313,6 +369,9 @@
313 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="PropertySheets"> 369 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|Win32'" Label="PropertySheets">
314 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 370 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
315 </ImportGroup> 371 </ImportGroup>
372 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|Win32'" Label="PropertySheets">
373 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
374 </ImportGroup>
316 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'" Label="PropertySheets"> 375 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'" Label="PropertySheets">
317 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 376 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
318 </ImportGroup> 377 </ImportGroup>
@@ -322,6 +381,9 @@
322 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'" Label="PropertySheets"> 381 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|Win32'" Label="PropertySheets">
323 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 382 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
324 </ImportGroup> 383 </ImportGroup>
384 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|Win32'" Label="PropertySheets">
385 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
386 </ImportGroup>
325 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'"> 387 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">
326 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 388 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
327 </ImportGroup> 389 </ImportGroup>
@@ -343,6 +405,9 @@
343 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="PropertySheets"> 405 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.4|x64'" Label="PropertySheets">
344 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 406 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
345 </ImportGroup> 407 </ImportGroup>
408 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|x64'" Label="PropertySheets">
409 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
410 </ImportGroup>
346 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'" Label="PropertySheets"> 411 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'" Label="PropertySheets">
347 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 412 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
348 </ImportGroup> 413 </ImportGroup>
@@ -352,6 +417,9 @@
352 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'" Label="PropertySheets"> 417 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.4|x64'" Label="PropertySheets">
353 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> 418 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
354 </ImportGroup> 419 </ImportGroup>
420 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|x64'" Label="PropertySheets">
421 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
422 </ImportGroup>
355 <PropertyGroup Label="UserMacros" /> 423 <PropertyGroup Label="UserMacros" />
356 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'"> 424 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|x64'">
357 <TargetExt>.dll</TargetExt> 425 <TargetExt>.dll</TargetExt>
@@ -395,6 +463,12 @@
395 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> 463 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
396 <LinkIncremental>false</LinkIncremental> 464 <LinkIncremental>false</LinkIncremental>
397 </PropertyGroup> 465 </PropertyGroup>
466 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|x64'">
467 <TargetExt>.dll</TargetExt>
468 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
469 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
470 <LinkIncremental>false</LinkIncremental>
471 </PropertyGroup>
398 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'"> 472 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'">
399 <TargetExt>.dll</TargetExt> 473 <TargetExt>.dll</TargetExt>
400 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> 474 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
@@ -443,6 +517,12 @@
443 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> 517 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
444 <LinkIncremental>false</LinkIncremental> 518 <LinkIncremental>false</LinkIncremental>
445 </PropertyGroup> 519 </PropertyGroup>
520 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|Win32'">
521 <TargetExt>.dll</TargetExt>
522 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
523 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
524 <LinkIncremental>false</LinkIncremental>
525 </PropertyGroup>
446 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'"> 526 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|Win32'">
447 <TargetExt>.dll</TargetExt> 527 <TargetExt>.dll</TargetExt>
448 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> 528 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
@@ -459,6 +539,11 @@
459 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> 539 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
460 <LinkIncremental>false</LinkIncremental> 540 <LinkIncremental>false</LinkIncremental>
461 </PropertyGroup> 541 </PropertyGroup>
542 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|x64'">
543 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
544 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
545 <LinkIncremental>false</LinkIncremental>
546 </PropertyGroup>
462 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.3|Win32'"> 547 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.3|Win32'">
463 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> 548 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
464 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir> 549 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
@@ -469,6 +554,11 @@
469 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir> 554 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
470 <LinkIncremental>false</LinkIncremental> 555 <LinkIncremental>false</LinkIncremental>
471 </PropertyGroup> 556 </PropertyGroup>
557 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|Win32'">
558 <IntDir>$(SolutionDir)_Tmp\$(ProjectName)\$(PlatformName)\$(Configuration)\</IntDir>
559 <OutDir>$(SolutionDir)_Output\$(ProjectName)\$(PlatformName)\$(Configuration)\</OutDir>
560 <LinkIncremental>false</LinkIncremental>
561 </PropertyGroup>
472 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.3|x64'"> 562 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.3|x64'">
473 <ClCompile> 563 <ClCompile>
474 <WarningLevel>Level3</WarningLevel> 564 <WarningLevel>Level3</WarningLevel>
@@ -476,7 +566,7 @@
476 <ConformanceMode>true</ConformanceMode> 566 <ConformanceMode>true</ConformanceMode>
477 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 567 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
478 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 568 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
479 <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 569 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
480 <LanguageStandard>stdcpp20</LanguageStandard> 570 <LanguageStandard>stdcpp20</LanguageStandard>
481 <OmitFramePointers>true</OmitFramePointers> 571 <OmitFramePointers>true</OmitFramePointers>
482 <BasicRuntimeChecks /> 572 <BasicRuntimeChecks />
@@ -501,7 +591,7 @@
501 <ConformanceMode>true</ConformanceMode> 591 <ConformanceMode>true</ConformanceMode>
502 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 592 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
503 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 593 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
504 <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 594 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
505 <LanguageStandard>stdcpp20</LanguageStandard> 595 <LanguageStandard>stdcpp20</LanguageStandard>
506 <BasicRuntimeChecks /> 596 <BasicRuntimeChecks />
507 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 597 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
@@ -518,6 +608,31 @@
518 </Message> 608 </Message>
519 </PostBuildEvent> 609 </PostBuildEvent>
520 </ItemDefinitionGroup> 610 </ItemDefinitionGroup>
611 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|x64'">
612 <ClCompile>
613 <WarningLevel>Level3</WarningLevel>
614 <SDLCheck>true</SDLCheck>
615 <ConformanceMode>true</ConformanceMode>
616 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
617 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
618 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
619 <LanguageStandard>stdcpp20</LanguageStandard>
620 <BasicRuntimeChecks>
621 </BasicRuntimeChecks>
622 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
623 </ClCompile>
624 <Link>
625 <EnableCOMDATFolding>true</EnableCOMDATFolding>
626 <OptimizeReferences>true</OptimizeReferences>
627 <AdditionalDependencies>lua55.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
628 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories>
629 </Link>
630 <PostBuildEvent>
631 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
632 <Message>
633 </Message>
634 </PostBuildEvent>
635 </ItemDefinitionGroup>
521 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'"> 636 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.3|Win32'">
522 <ClCompile> 637 <ClCompile>
523 <WarningLevel>Level3</WarningLevel> 638 <WarningLevel>Level3</WarningLevel>
@@ -528,6 +643,7 @@
528 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 643 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
529 <LanguageStandard>stdcpp20</LanguageStandard> 644 <LanguageStandard>stdcpp20</LanguageStandard>
530 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 645 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
646 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
531 </ClCompile> 647 </ClCompile>
532 <PostBuildEvent> 648 <PostBuildEvent>
533 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 649 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -550,6 +666,7 @@
550 <LanguageStandard>stdcpp20</LanguageStandard> 666 <LanguageStandard>stdcpp20</LanguageStandard>
551 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 667 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
552 <OmitFramePointers>false</OmitFramePointers> 668 <OmitFramePointers>false</OmitFramePointers>
669 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
553 </ClCompile> 670 </ClCompile>
554 <PostBuildEvent> 671 <PostBuildEvent>
555 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 672 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -574,6 +691,7 @@
574 <Optimization>MaxSpeed</Optimization> 691 <Optimization>MaxSpeed</Optimization>
575 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 692 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
576 <BasicRuntimeChecks /> 693 <BasicRuntimeChecks />
694 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
577 </ClCompile> 695 </ClCompile>
578 <PostBuildEvent> 696 <PostBuildEvent>
579 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 697 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -597,6 +715,7 @@
597 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 715 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
598 <LanguageStandard>stdcpp20</LanguageStandard> 716 <LanguageStandard>stdcpp20</LanguageStandard>
599 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 717 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
718 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
600 </ClCompile> 719 </ClCompile>
601 <PostBuildEvent> 720 <PostBuildEvent>
602 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 721 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -621,6 +740,7 @@
621 <OmitFramePointers>true</OmitFramePointers> 740 <OmitFramePointers>true</OmitFramePointers>
622 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 741 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
623 <BasicRuntimeChecks /> 742 <BasicRuntimeChecks />
743 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
624 </ClCompile> 744 </ClCompile>
625 <PostBuildEvent> 745 <PostBuildEvent>
626 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 746 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -642,7 +762,7 @@
642 <ConformanceMode>true</ConformanceMode> 762 <ConformanceMode>true</ConformanceMode>
643 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 763 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
644 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 764 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
645 <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 765 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
646 <LanguageStandard>stdcpp20</LanguageStandard> 766 <LanguageStandard>stdcpp20</LanguageStandard>
647 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 767 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
648 <BasicRuntimeChecks /> 768 <BasicRuntimeChecks />
@@ -670,6 +790,29 @@
670 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 790 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
671 <LanguageStandard>stdcpp20</LanguageStandard> 791 <LanguageStandard>stdcpp20</LanguageStandard>
672 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 792 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
793 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
794 </ClCompile>
795 <PostBuildEvent>
796 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
797 <Message>
798 </Message>
799 </PostBuildEvent>
800 <Link>
801 <AdditionalDependencies>lua54.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
802 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories>
803 </Link>
804 </ItemDefinitionGroup>
805 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|Win32'">
806 <ClCompile>
807 <WarningLevel>Level3</WarningLevel>
808 <Optimization>Disabled</Optimization>
809 <SDLCheck>true</SDLCheck>
810 <ConformanceMode>true</ConformanceMode>
811 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
812 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
813 <LanguageStandard>stdcpp20</LanguageStandard>
814 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
815 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
673 </ClCompile> 816 </ClCompile>
674 <PostBuildEvent> 817 <PostBuildEvent>
675 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 818 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -693,7 +836,7 @@
693 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 836 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
694 <BasicRuntimeChecks /> 837 <BasicRuntimeChecks />
695 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 838 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
696 <PreprocessorDefinitions>_WINDLL;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 839 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
697 </ClCompile> 840 </ClCompile>
698 <PostBuildEvent> 841 <PostBuildEvent>
699 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command> 842 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
@@ -714,7 +857,7 @@
714 <ConformanceMode>true</ConformanceMode> 857 <ConformanceMode>true</ConformanceMode>
715 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 858 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
716 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 859 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
717 <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 860 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
718 <LanguageStandard>stdcpp20</LanguageStandard> 861 <LanguageStandard>stdcpp20</LanguageStandard>
719 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 862 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
720 <OmitFramePointers>false</OmitFramePointers> 863 <OmitFramePointers>false</OmitFramePointers>
@@ -736,7 +879,7 @@
736 <ConformanceMode>true</ConformanceMode> 879 <ConformanceMode>true</ConformanceMode>
737 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 880 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
738 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 881 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
739 <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 882 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
740 <LanguageStandard>stdcpp20</LanguageStandard> 883 <LanguageStandard>stdcpp20</LanguageStandard>
741 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 884 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
742 <OmitFramePointers>false</OmitFramePointers> 885 <OmitFramePointers>false</OmitFramePointers>
@@ -758,7 +901,7 @@
758 <ConformanceMode>true</ConformanceMode> 901 <ConformanceMode>true</ConformanceMode>
759 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 902 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
760 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 903 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
761 <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 904 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
762 <LanguageStandard>stdcpp20</LanguageStandard> 905 <LanguageStandard>stdcpp20</LanguageStandard>
763 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 906 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
764 <OmitFramePointers>true</OmitFramePointers> 907 <OmitFramePointers>true</OmitFramePointers>
@@ -785,7 +928,7 @@
785 <ConformanceMode>true</ConformanceMode> 928 <ConformanceMode>true</ConformanceMode>
786 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 929 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
787 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 930 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
788 <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 931 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
789 <LanguageStandard>stdcpp20</LanguageStandard> 932 <LanguageStandard>stdcpp20</LanguageStandard>
790 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 933 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
791 <OmitFramePointers>false</OmitFramePointers> 934 <OmitFramePointers>false</OmitFramePointers>
@@ -807,7 +950,7 @@
807 <ConformanceMode>true</ConformanceMode> 950 <ConformanceMode>true</ConformanceMode>
808 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 951 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
809 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 952 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
810 <PreprocessorDefinitions>_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 953 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
811 <LanguageStandard>stdcpp20</LanguageStandard> 954 <LanguageStandard>stdcpp20</LanguageStandard>
812 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 955 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
813 <OmitFramePointers>true</OmitFramePointers> 956 <OmitFramePointers>true</OmitFramePointers>
@@ -834,7 +977,7 @@
834 <ConformanceMode>true</ConformanceMode> 977 <ConformanceMode>true</ConformanceMode>
835 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 978 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
836 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 979 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
837 <PreprocessorDefinitions>_WINDLL;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 980 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
838 <LanguageStandard>stdcpp20</LanguageStandard> 981 <LanguageStandard>stdcpp20</LanguageStandard>
839 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 982 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
840 <OmitFramePointers>false</OmitFramePointers> 983 <OmitFramePointers>false</OmitFramePointers>
@@ -860,7 +1003,7 @@
860 <ConformanceMode>true</ConformanceMode> 1003 <ConformanceMode>true</ConformanceMode>
861 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 1004 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
862 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 1005 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
863 <PreprocessorDefinitions>_WINDLL;_DEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 1006 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
864 <LanguageStandard>stdcpp20</LanguageStandard> 1007 <LanguageStandard>stdcpp20</LanguageStandard>
865 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 1008 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
866 <OmitFramePointers>false</OmitFramePointers> 1009 <OmitFramePointers>false</OmitFramePointers>
@@ -875,6 +1018,28 @@
875 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories> 1018 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories>
876 </Link> 1019 </Link>
877 </ItemDefinitionGroup> 1020 </ItemDefinitionGroup>
1021 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug 5.5|x64'">
1022 <ClCompile>
1023 <WarningLevel>Level3</WarningLevel>
1024 <SDLCheck>true</SDLCheck>
1025 <ConformanceMode>true</ConformanceMode>
1026 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
1027 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
1028 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
1029 <LanguageStandard>stdcpp20</LanguageStandard>
1030 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
1031 <OmitFramePointers>false</OmitFramePointers>
1032 </ClCompile>
1033 <PostBuildEvent>
1034 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
1035 <Message>
1036 </Message>
1037 </PostBuildEvent>
1038 <Link>
1039 <AdditionalDependencies>lua55.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
1040 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories>
1041 </Link>
1042 </ItemDefinitionGroup>
878 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'"> 1043 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release MoonJIT|x64'">
879 <ClCompile> 1044 <ClCompile>
880 <WarningLevel>Level3</WarningLevel> 1045 <WarningLevel>Level3</WarningLevel>
@@ -882,7 +1047,7 @@
882 <ConformanceMode>true</ConformanceMode> 1047 <ConformanceMode>true</ConformanceMode>
883 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories> 1048 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
884 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> 1049 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
885 <PreprocessorDefinitions>_WINDLL;NDEBUG;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> 1050 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
886 <LanguageStandard>stdcpp20</LanguageStandard> 1051 <LanguageStandard>stdcpp20</LanguageStandard>
887 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> 1052 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
888 <OmitFramePointers>false</OmitFramePointers> 1053 <OmitFramePointers>false</OmitFramePointers>
@@ -912,6 +1077,7 @@
912 <OmitFramePointers>true</OmitFramePointers> 1077 <OmitFramePointers>true</OmitFramePointers>
913 <BasicRuntimeChecks /> 1078 <BasicRuntimeChecks />
914 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 1079 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
1080 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
915 </ClCompile> 1081 </ClCompile>
916 <Link> 1082 <Link>
917 <EnableCOMDATFolding>true</EnableCOMDATFolding> 1083 <EnableCOMDATFolding>true</EnableCOMDATFolding>
@@ -938,6 +1104,7 @@
938 <LanguageStandard>stdcpp20</LanguageStandard> 1104 <LanguageStandard>stdcpp20</LanguageStandard>
939 <BasicRuntimeChecks /> 1105 <BasicRuntimeChecks />
940 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary> 1106 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
1107 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
941 </ClCompile> 1108 </ClCompile>
942 <Link> 1109 <Link>
943 <EnableCOMDATFolding>true</EnableCOMDATFolding> 1110 <EnableCOMDATFolding>true</EnableCOMDATFolding>
@@ -954,6 +1121,36 @@
954 </Message> 1121 </Message>
955 </PostBuildEvent> 1122 </PostBuildEvent>
956 </ItemDefinitionGroup> 1123 </ItemDefinitionGroup>
1124 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release 5.5|Win32'">
1125 <ClCompile>
1126 <WarningLevel>Level3</WarningLevel>
1127 <Optimization>MaxSpeed</Optimization>
1128 <SDLCheck>true</SDLCheck>
1129 <ConformanceMode>true</ConformanceMode>
1130 <AdditionalIncludeDirectories>$(SolutionDir)/_LuaVersions/$(PlatformName)/$(ConfigurationName)/include;$(SolutionDir)..</AdditionalIncludeDirectories>
1131 <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
1132 <LanguageStandard>stdcpp20</LanguageStandard>
1133 <BasicRuntimeChecks>
1134 </BasicRuntimeChecks>
1135 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
1136 <PreprocessorDefinitions>LANES_DEBUG;_WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
1137 </ClCompile>
1138 <Link>
1139 <EnableCOMDATFolding>true</EnableCOMDATFolding>
1140 <OptimizeReferences>true</OptimizeReferences>
1141 <AdditionalDependencies>lua54.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
1142 <AdditionalLibraryDirectories>$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)</AdditionalLibraryDirectories>
1143 <ImageHasSafeExceptionHandlers>
1144 </ImageHasSafeExceptionHandlers>
1145 </Link>
1146 <PostBuildEvent>
1147 <Command>xcopy /F /I /R /Y "$(TargetPath)" "$(SolutionDir)_LuaVersions\$(PlatformName)\$(ConfigurationName)"</Command>
1148 </PostBuildEvent>
1149 <PostBuildEvent>
1150 <Message>
1151 </Message>
1152 </PostBuildEvent>
1153 </ItemDefinitionGroup>
957 <ItemGroup> 1154 <ItemGroup>
958 <ClCompile Include="..\src\compat.cpp" /> 1155 <ClCompile Include="..\src\compat.cpp" />
959 <ClCompile Include="..\src\deep.cpp" /> 1156 <ClCompile Include="..\src\deep.cpp" />
diff --git a/deep_userdata_example/deeptest.lua b/deep_userdata_example/deeptest.lua
index 37136cd..7e6ffd3 100644
--- a/deep_userdata_example/deeptest.lua
+++ b/deep_userdata_example/deeptest.lua
@@ -1,5 +1,5 @@
1local lanes = require("lanes").configure{ with_timers = false} 1local lanes = require("lanes").configure{ with_timers = false}
2local l = lanes.linda "my linda" 2local l = lanes.linda{name = "my linda"}
3 3
4local table_unpack = table.unpack or unpack -- Lua 5.1 support 4local table_unpack = table.unpack or unpack -- Lua 5.1 support
5 5