Skip to content

Commit

Permalink
Merge pull request Project-OSRM#5927 from OgreTransporter/master
Browse files Browse the repository at this point in the history
Bugfix Lua 5.4 not working
  • Loading branch information
akashihi authored Jan 21, 2021
2 parents a05d7a8 + 35ff807 commit b6557b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions third_party/sol2/sol/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@ namespace sol {
runtime = LUA_ERRRUN,
memory = LUA_ERRMEM,
handler = LUA_ERRERR,
#if SOL_LUA_VERSION < 504
gc = LUA_ERRGCMM,
#endif
syntax = LUA_ERRSYNTAX,
file = LUA_ERRFILE,
};
Expand All @@ -578,7 +580,9 @@ namespace sol {
yielded = LUA_YIELD,
runtime = LUA_ERRRUN,
memory = LUA_ERRMEM,
#if SOL_LUA_VERSION < 504
gc = LUA_ERRGCMM,
#endif
handler = LUA_ERRERR,
dead = -1,
};
Expand All @@ -587,7 +591,9 @@ namespace sol {
ok = LUA_OK,
syntax = LUA_ERRSYNTAX,
memory = LUA_ERRMEM,
#if SOL_LUA_VERSION < 504
gc = LUA_ERRGCMM,
#endif
file = LUA_ERRFILE,
};

Expand Down Expand Up @@ -630,8 +636,10 @@ namespace sol {
return names[3];
case call_status::handler:
return names[4];
#if SOL_LUA_VERSION < 504
case call_status::gc:
return names[5];
#endif
case call_status::syntax:
return names[6];
case call_status::file:
Expand All @@ -651,7 +659,9 @@ namespace sol {
case call_status::runtime:
case call_status::memory:
case call_status::handler:
#if SOL_LUA_VERSION < 504
case call_status::gc:
#endif
case call_status::syntax:
case call_status::file:
return false;
Expand All @@ -672,8 +682,10 @@ namespace sol {
return names[0];
case load_status::memory:
return names[1];
#if SOL_LUA_VERSION < 504
case load_status::gc:
return names[2];
#endif
case load_status::syntax:
return names[3];
case load_status::file:
Expand Down

0 comments on commit b6557b8

Please sign in to comment.