diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-07-31 18:35:42 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-07-31 18:35:42 +0200 |
| commit | ab941c943aedf8f233619773c09c0fde304b8e93 (patch) | |
| tree | 0fc848eb51519860ed2f4196b3517ba051b088e7 /deep_userdata_example | |
| parent | 658f60168004d2a75685c32743fdd84427765af1 (diff) | |
| download | lanes-ab941c943aedf8f233619773c09c0fde304b8e93.tar.gz lanes-ab941c943aedf8f233619773c09c0fde304b8e93.tar.bz2 lanes-ab941c943aedf8f233619773c09c0fde304b8e93.zip | |
Copy deep_userdata_example test script in the test framework
* I need to keep deep_userdata_example hackishly built-in inside the unit tests executable, because using the external module cause a crash in Lua51 tests (module is unloaded before some deep objects are GCed...)
* copy the test script in the proper location and invoke it as part of the tests
Diffstat (limited to 'deep_userdata_example')
| -rw-r--r-- | deep_userdata_example/deep_userdata_example.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deep_userdata_example/deep_userdata_example.cpp b/deep_userdata_example/deep_userdata_example.cpp index e87c48f..6845ff1 100644 --- a/deep_userdata_example/deep_userdata_example.cpp +++ b/deep_userdata_example/deep_userdata_example.cpp | |||
| @@ -307,7 +307,7 @@ int luaD_new_clonable(lua_State* L) | |||
| 307 | // ################################################################################################# | 307 | // ################################################################################################# |
| 308 | 308 | ||
| 309 | static luaL_Reg const deep_module[] = { | 309 | static luaL_Reg const deep_module[] = { |
| 310 | { "get_deep_count", luaD_get_deep_count }, | 310 | { "get_deep_count", luaD_get_deep_count }, |
| 311 | { "new_deep", luaD_new_deep }, | 311 | { "new_deep", luaD_new_deep }, |
| 312 | { "new_clonable", luaD_new_clonable }, | 312 | { "new_clonable", luaD_new_clonable }, |
| 313 | { nullptr, nullptr } | 313 | { nullptr, nullptr } |
