Skip to content

Commit 49a0f71

Browse files
committed
library fixes
1 parent ed21ba7 commit 49a0f71

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

single/sol/sol.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
// This file was generated with a script.
23-
// Generated 2016-11-23 07:39:25.032134 UTC
24-
// This header was generated with sol v2.15.1 (revision 320276d)
23+
// Generated 2016-11-23 07:55:07.806043 UTC
24+
// This header was generated with sol v2.15.1 (revision ed21ba7)
2525
// https://github.com/ThePhD/sol2
2626

2727
#ifndef SOL_SINGLE_INCLUDE_HPP
@@ -12294,7 +12294,7 @@ namespace sol {
1229412294
lua_pop(L, 1);
1229512295
#endif // Lua 5.2+ only
1229612296
break;
12297-
#endif // Not LuaJIT
12297+
#endif // Not LuaJIT - comes builtin
1229812298
case lib::string:
1229912299
luaL_requiref(L, "string", luaopen_string, 1);
1230012300
lua_pop(L, 1);
@@ -12311,11 +12311,11 @@ namespace sol {
1231112311
#ifdef SOL_LUAJIT
1231212312
luaL_requiref(L, "bit32", luaopen_bit, 1);
1231312313
lua_pop(L, 1);
12314-
#elif SOL_LUA_VERSION == 502
12314+
#elif (SOL_LUA_VERSION == 502) || defined(LUA_COMPAT_BITLIB) || defined(LUA_COMPAT_5_2)
1231512315
luaL_requiref(L, "bit32", luaopen_bit32, 1);
1231612316
lua_pop(L, 1);
1231712317
#else
12318-
#endif // Lua 5.2 only (deprecated in 5.3 (503))
12318+
#endif // Lua 5.2 only (deprecated in 5.3 (503)) (Can be turned on with Compat flags)
1231912319
break;
1232012320
case lib::io:
1232112321
luaL_requiref(L, "io", luaopen_io, 1);
@@ -12339,13 +12339,13 @@ namespace sol {
1233912339
#ifdef SOL_LUAJIT
1234012340
luaL_requiref(L, "ffi", luaopen_ffi, 1);
1234112341
lua_pop(L, 1);
12342-
#endif
12342+
#endif // LuaJIT only
1234312343
break;
1234412344
case lib::jit:
1234512345
#ifdef SOL_LUAJIT
1234612346
luaL_requiref(L, "jit", luaopen_jit, 1);
1234712347
lua_pop(L, 1);
12348-
#endif
12348+
#endif // LuaJIT Only
1234912349
break;
1235012350
case lib::count:
1235112351
default:

sol/state_view.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ namespace sol {
153153
lua_pop(L, 1);
154154
#endif // Lua 5.2+ only
155155
break;
156-
#endif // Not LuaJIT
156+
#endif // Not LuaJIT - comes builtin
157157
case lib::string:
158158
luaL_requiref(L, "string", luaopen_string, 1);
159159
lua_pop(L, 1);
@@ -170,11 +170,11 @@ namespace sol {
170170
#ifdef SOL_LUAJIT
171171
luaL_requiref(L, "bit32", luaopen_bit, 1);
172172
lua_pop(L, 1);
173-
#elif SOL_LUA_VERSION == 502
173+
#elif (SOL_LUA_VERSION == 502) || defined(LUA_COMPAT_BITLIB) || defined(LUA_COMPAT_5_2)
174174
luaL_requiref(L, "bit32", luaopen_bit32, 1);
175175
lua_pop(L, 1);
176176
#else
177-
#endif // Lua 5.2 only (deprecated in 5.3 (503))
177+
#endif // Lua 5.2 only (deprecated in 5.3 (503)) (Can be turned on with Compat flags)
178178
break;
179179
case lib::io:
180180
luaL_requiref(L, "io", luaopen_io, 1);
@@ -198,13 +198,13 @@ namespace sol {
198198
#ifdef SOL_LUAJIT
199199
luaL_requiref(L, "ffi", luaopen_ffi, 1);
200200
lua_pop(L, 1);
201-
#endif
201+
#endif // LuaJIT only
202202
break;
203203
case lib::jit:
204204
#ifdef SOL_LUAJIT
205205
luaL_requiref(L, "jit", luaopen_jit, 1);
206206
lua_pop(L, 1);
207-
#endif
207+
#endif // LuaJIT Only
208208
break;
209209
case lib::count:
210210
default:

0 commit comments

Comments
 (0)