diff --git a/examples/pairs.cpp b/examples/pairs.cpp index b2470bcf..d6d83124 100644 --- a/examples/pairs.cpp +++ b/examples/pairs.cpp @@ -77,7 +77,7 @@ int main(int, char*[]) { sol::meta_function::pairs, my_pairs ); -#ifdef SOL_LUA_VERSION < 502 +#if SOL_LUA_VERSION < 502 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 8134c2ab..2a560910 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 ); -#ifdef SOL_LUA_VERSION < 502 +#if SOL_LUA_VERSION < 502 lua.safe_script(R"( local mt = my_thing.new() for k, v in pairs(mt) do