mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Mmmn, still can't type conditionals
This commit is contained in:
parent
78fd95d456
commit
b2f9822632
|
@ -77,7 +77,7 @@ int main(int, char*[]) {
|
||||||
sol::meta_function::pairs, my_pairs
|
sol::meta_function::pairs, my_pairs
|
||||||
);
|
);
|
||||||
|
|
||||||
#if SOL_LUA_VERSION < 502
|
#if SOL_LUA_VERSION > 501
|
||||||
lua.safe_script(R"(
|
lua.safe_script(R"(
|
||||||
local mt = my_thing.new()
|
local mt = my_thing.new()
|
||||||
for k, v in pairs(mt) do
|
for k, v in pairs(mt) do
|
||||||
|
|
|
@ -72,7 +72,7 @@ int main(int, char*[]) {
|
||||||
sol::meta_function::pairs, &my_pairs
|
sol::meta_function::pairs, &my_pairs
|
||||||
);
|
);
|
||||||
|
|
||||||
#if SOL_LUA_VERSION < 502
|
#if SOL_LUA_VERSION > 501
|
||||||
lua.safe_script(R"(
|
lua.safe_script(R"(
|
||||||
local mt = my_thing.new()
|
local mt = my_thing.new()
|
||||||
for k, v in pairs(mt) do
|
for k, v in pairs(mt) do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user