Reinder Feenstra
a072bdef76
test: lua is_instance -> get_class, fixed implementation issues
2021-11-23 23:50:54 +01:00
Reinder Feenstra
0546ef1c30
lua: added WorldScale enum to sandbox
2021-11-10 21:58:09 +01:00
Reinder Feenstra
b15cc45286
lua: added support for testing object type
2021-09-21 23:49:03 +02:00
Reinder Feenstra
b30db09116
server: fixed many warnings
2021-09-11 23:49:38 +02:00
Reinder Feenstra
5278edb482
lua: improved Lua::push and added test
2021-08-23 00:04:46 +02:00
Reinder Feenstra
d9b121948f
Lua: fix: ReadOnlyTable, existing keys could be written
2021-04-22 23:28:41 +02:00
Reinder Feenstra
919e2e2787
test: lua: added check if writing to enum/set.type_name.* raises an error
2021-04-22 23:24:27 +02:00
Reinder Feenstra
7ab43c4598
test: added missing registation of Lua::ReadOnlyTable
2021-04-20 23:08:22 +02:00
Reinder Feenstra
5b4ab8f30d
Added test and support for Lua::check<> enum's
2021-04-20 22:24:26 +02:00
Reinder Feenstra
1c4b3bb74a
Added test and support for Lua::check<> string/string_view
2021-04-20 22:22:23 +02:00
Reinder Feenstra
d9f02fcbac
added tests Lua::check<> bool, int and float types
2021-04-19 23:20:39 +02:00
Reinder Feenstra
08f78d1ab9
test: moved protect jmp_buf global to lua state
...
so every lua state has its own jmp_buf
2021-04-19 23:18:50 +02:00
Reinder Feenstra
c24c1d7e4a
test lua enum: added tostring testing
2021-04-14 20:47:23 +02:00
Reinder Feenstra
b45a1c851f
added missing include guard
2021-04-14 08:09:03 +02:00
Reinder Feenstra
5727e70048
removed garbage code
2021-04-14 08:08:25 +02:00
Reinder Feenstra
f2b7d7bb52
test lua: replace panic-to-exception by longjmp
...
calls to Lua can now easily be protected using the protect<> template function, it will return false if a lua error occurs.
The exception method didn't work properly with catch2 on windows.
2021-04-14 00:04:03 +02:00
Reinder Feenstra
0ae199574e
added license header to tests
2021-04-12 23:41:54 +02:00
Reinder Feenstra
ac1ade0a3d
test: Added test for Lua::Enum<>
2021-04-12 23:31:41 +02:00
Reinder Feenstra
a4a90fde12
test fix: added missing pushnumber
2021-04-12 23:30:22 +02:00
Reinder Feenstra
13cf3ed57f
Lua::to<> added enum support
2021-04-12 23:29:44 +02:00
Reinder Feenstra
b4bb83f108
test: added Lua::Set<> test
2021-04-07 23:03:16 +02:00
Reinder Feenstra
6c80ee13c7
test: added tests for Lua::to<>
2021-02-27 00:24:23 +01:00