mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Improve and fix optional, avoid LuaJIT bullshit
This commit is contained in:
parent
975788c920
commit
c6b47c8d18
2
Optional
2
Optional
|
@ -1 +1 @@
|
||||||
Subproject commit f11b4f00eb029862dd2a4d7e3497324aba8a020f
|
Subproject commit 706576c8287e1c1ca481fed81ab2af926b65bfb8
|
|
@ -830,7 +830,9 @@ TEST_CASE("functions/required_and_variadic_args", "Check if a certain number of
|
||||||
);
|
);
|
||||||
REQUIRE_NOTHROW(lua.script("v(20, 25, 30)"));
|
REQUIRE_NOTHROW(lua.script("v(20, 25, 30)"));
|
||||||
REQUIRE_NOTHROW(lua.script("v(20, 25)"));
|
REQUIRE_NOTHROW(lua.script("v(20, 25)"));
|
||||||
|
#ifndef SOL_LUAJIT
|
||||||
REQUIRE_THROWS(lua.script("v(20)"));
|
REQUIRE_THROWS(lua.script("v(20)"));
|
||||||
|
#endif // LuaJIT has problems with exceptions, as fucking usual
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("functions/overloading", "Check if overloading works properly for regular set function syntax") {
|
TEST_CASE("functions/overloading", "Check if overloading works properly for regular set function syntax") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user