diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index a20d2453..7a28d353 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2018-05-14 17:21:18.007667 UTC -// This header was generated with sol v2.20.0 (revision f8ee7ab) +// Generated 2018-05-20 19:25:19.981188 UTC +// This header was generated with sol v2.20.1 (revision 4f366a1) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -9728,11 +9728,7 @@ namespace stack { static optional get(lua_State* L, int index, Handler&& handler, record& tracking) { // actually check if it's none here, otherwise // we'll have a none object inside an optional! -#if defined(SOL_SAFE_REFERENCES) && SOL_SAFE_REFERENCES bool success = stack::check(L, index, no_panic); -#else - bool success = !lua_isnone(L, index); -#endif if (!success) { // expected type, actual type tracking.use(static_cast(success)); diff --git a/single/sol/sol_forward.hpp b/single/sol/sol_forward.hpp index 8a1497f0..8cf2b83f 100644 --- a/single/sol/sol_forward.hpp +++ b/single/sol/sol_forward.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2018-05-14 17:21:18.351259 UTC -// This header was generated with sol v2.20.0 (revision f8ee7ab) +// Generated 2018-05-20 19:25:20.251908 UTC +// This header was generated with sol v2.20.1 (revision 4f366a1) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/sol/stack_check_get.hpp b/sol/stack_check_get.hpp index a4514b00..9d3b07e7 100644 --- a/sol/stack_check_get.hpp +++ b/sol/stack_check_get.hpp @@ -53,11 +53,7 @@ namespace stack { static optional get(lua_State* L, int index, Handler&& handler, record& tracking) { // actually check if it's none here, otherwise // we'll have a none object inside an optional! -#if defined(SOL_SAFE_REFERENCES) && SOL_SAFE_REFERENCES bool success = stack::check(L, index, no_panic); -#else - bool success = !lua_isnone(L, index); -#endif if (!success) { // expected type, actual type tracking.use(static_cast(success));