mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
blah lua versions
This commit is contained in:
parent
5a4d7dca7f
commit
3dd617d33a
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-05-29 20:53:05.788092 UTC
|
// Generated 2019-05-29 23:31:18.215247 UTC
|
||||||
// This header was generated with sol v3.0.2 (revision 46a2b01)
|
// This header was generated with sol v3.0.2 (revision 5a4d7dc)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
#ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// This file was generated with a script.
|
// This file was generated with a script.
|
||||||
// Generated 2019-05-29 20:53:04.799735 UTC
|
// Generated 2019-05-29 23:31:17.933001 UTC
|
||||||
// This header was generated with sol v3.0.2 (revision 46a2b01)
|
// This header was generated with sol v3.0.2 (revision 5a4d7dc)
|
||||||
// https://github.com/ThePhD/sol2
|
// https://github.com/ThePhD/sol2
|
||||||
|
|
||||||
#ifndef SOL_SINGLE_INCLUDE_HPP
|
#ifndef SOL_SINGLE_INCLUDE_HPP
|
||||||
|
|
|
@ -193,6 +193,7 @@ TEST_CASE("operators/default with pointers", "test that default operations still
|
||||||
|
|
||||||
lua.new_usertype<T>("T");
|
lua.new_usertype<T>("T");
|
||||||
|
|
||||||
|
|
||||||
T test;
|
T test;
|
||||||
|
|
||||||
lua["t1"] = &test;
|
lua["t1"] = &test;
|
||||||
|
@ -201,15 +202,19 @@ TEST_CASE("operators/default with pointers", "test that default operations still
|
||||||
lua["t4"] = std::unique_ptr<T, no_delete>(&test);
|
lua["t4"] = std::unique_ptr<T, no_delete>(&test);
|
||||||
|
|
||||||
lua.script("ptr_test = t1 == t2");
|
lua.script("ptr_test = t1 == t2");
|
||||||
lua.script("ptr_unique_test = t1 == t3");
|
|
||||||
lua.script("unique_test = t3 == t4");
|
lua.script("unique_test = t3 == t4");
|
||||||
|
|
||||||
bool ptr_test = lua["ptr_test"];
|
bool ptr_test = lua["ptr_test"];
|
||||||
bool ptr_unique_test = lua["ptr_unique_test"];
|
|
||||||
bool unique_test = lua["unique_test"];
|
bool unique_test = lua["unique_test"];
|
||||||
REQUIRE(ptr_test);
|
REQUIRE(ptr_test);
|
||||||
REQUIRE(ptr_unique_test);
|
|
||||||
REQUIRE(unique_test);
|
REQUIRE(unique_test);
|
||||||
|
|
||||||
|
#if SOL_LUA_VERSION > 502
|
||||||
|
lua.script("ptr_unique_test = t1 == t3");
|
||||||
|
|
||||||
|
bool ptr_unique_test = lua["ptr_unique_test"];
|
||||||
|
REQUIRE(ptr_unique_test);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("operators/call", "test call operator generation") {
|
TEST_CASE("operators/call", "test call operator generation") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user