mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
unused parameters are the devil
This commit is contained in:
parent
2f7607840f
commit
7cce3e4d42
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user