diff --git a/single.py b/single.py index f46d22df..a8a324cc 100644 --- a/single.py +++ b/single.py @@ -25,7 +25,7 @@ os.chdir(script_path) intro = """// The MIT License (MIT) -// Copyright (c) 2013-2015 Rapptz and contributors +// Copyright (c) 2013-2016 Rapptz, ThePhD and contributors // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in @@ -47,7 +47,7 @@ intro = """// The MIT License (MIT) // This file was generated with a script. // Generated {time} UTC // This header was generated with sol {version} (revision {revision}) -// https://github.com/Rapptz/sol +// https://github.com/ThePhD/sol2 #ifndef {guard} #define {guard} diff --git a/sol/stack.hpp b/sol/stack.hpp index 89b1301c..aaac2d3f 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -430,14 +430,14 @@ struct checker { if (indextype == type::nil) { return true; } - return checker{}.check(L, indextype, index, handler); + return checker{}.check(types(), L, indextype, index, handler); } }; template struct checker { - template - static bool check (lua_State* L, type indextype, int index, const Handler& handler) { + template + static bool check (types, lua_State* L, type indextype, int index, const Handler& handler) { if (indextype != type::userdata) { handler(L, index, type::userdata, indextype); return false; @@ -493,7 +493,7 @@ struct checker { template static bool check (lua_State* L, int index, const Handler& handler) { const type indextype = type_of(L, index); - return check(L, indextype, index, handler); + return check(types(), L, indextype, index, handler); } };