unused parameters are the devil

This commit is contained in:
ThePhD 2019-04-05 21:26:49 -04:00
parent 2f7607840f
commit 7cce3e4d42
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 8 additions and 8 deletions

View File

@ -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 2019-04-05 22:56:20.263143 UTC
// This header was generated with sol v3.0.1-beta2 (revision fbf9484)
// Generated 2019-04-06 01:26:37.932828 UTC
// This header was generated with sol v3.0.1-beta2 (revision 2f76078)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP

View File

@ -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 2019-04-05 22:56:19.784998 UTC
// This header was generated with sol v3.0.1-beta2 (revision fbf9484)
// Generated 2019-04-06 01:26:37.624327 UTC
// This header was generated with sol v3.0.1-beta2 (revision 2f76078)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP

View File

@ -290,13 +290,13 @@ TEST_CASE("inheritance/usertype derived non-hiding", "usertype classes must play
TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered base classes do not blow up usertypes") {
struct a {
a(sol::this_state ts, sol::this_environment te) {
a(sol::this_state ts, sol::this_environment) {
lua_State* L = ts;
ud = sol::userdata(L, -2);
}
sol::object get_property_lua(const char* name, sol::this_state s) {
sol::object get_property_lua(const char* name, sol::this_state) {
return props[name];
}
@ -314,7 +314,7 @@ TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered bas
};
struct b : public a, public nofun {
b(sol::this_state ts, sol::this_environment te, int ab) : a(ts, te) {
b(sol::this_state ts, sol::this_environment te, int) : a(ts, te) {
sol::state_view lua = ts;
lua.script("function break_crap(b_obj) b_obj.test3 = {} end");
@ -323,7 +323,7 @@ TEST_CASE("inheritance/bad_base-class", "check to make sure bad/unregistered bas
REQUIRE_FALSE(result.has_value());
}
b(sol::this_state ts, sol::this_environment te, int ab, int bc) : a(ts, te) {
b(sol::this_state ts, sol::this_environment te, int, int) : a(ts, te) {
}
~b() {
}