diff --git a/examples/pairs.cpp b/examples/pairs.cpp index d6d83124..b4240bde 100644 --- a/examples/pairs.cpp +++ b/examples/pairs.cpp @@ -77,7 +77,7 @@ int main(int, char*[]) { sol::meta_function::pairs, my_pairs ); -#if SOL_LUA_VERSION < 502 +#if SOL_LUA_VERSION > 501 lua.safe_script(R"( local mt = my_thing.new() for k, v in pairs(mt) do diff --git a/examples/pairs_with_raw_functions.cpp b/examples/pairs_with_raw_functions.cpp index 2a560910..1a376777 100644 --- a/examples/pairs_with_raw_functions.cpp +++ b/examples/pairs_with_raw_functions.cpp @@ -72,7 +72,7 @@ int main(int, char*[]) { sol::meta_function::pairs, &my_pairs ); -#if SOL_LUA_VERSION < 502 +#if SOL_LUA_VERSION > 501 lua.safe_script(R"( local mt = my_thing.new() for k, v in pairs(mt) do