mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
I'm also a dumby sometimes
This commit is contained in:
parent
2b2a6d2ab1
commit
78fd95d456
|
@ -77,7 +77,7 @@ int main(int, char*[]) {
|
||||||
sol::meta_function::pairs, my_pairs
|
sol::meta_function::pairs, my_pairs
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef SOL_LUA_VERSION < 502
|
#if SOL_LUA_VERSION < 502
|
||||||
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
|
||||||
);
|
);
|
||||||
|
|
||||||
#ifdef SOL_LUA_VERSION < 502
|
#if SOL_LUA_VERSION < 502
|
||||||
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