Glen Fraser
655c342123
Merge 69476967aeaa245c452a3b3b92b9ba3c571bb958 into 2eb3279c391854c7a005b82ad121802e88b7c171
2025-08-01 10:26:05 +00:00
FellowTraveler
0870cb5a3a
Add C++20 support
...
ChaiScript now successfully builds on my Mac with C++20, and passes 100% of the unit tests.
2023-06-18 06:42:51 -05:00
Glen Fraser
69476967ae
Reimplement pair_conversion() helper
...
- resolves issue #563 .
2021-06-18 16:40:38 +02:00
Bernd Amend
cff6a0aced
change .clang-format and reformat code with clang-format 11
...
I initially tried to use the existing .clang-format file,
but it does not match the code style (at least with clang-format 11)
and the formatting is not consistent across files.
Therefore, I decided to rewrite the .clang-format with some personal
preferences.
Used command
find . -iname "*.hpp" -o -iname "*.cpp" | xargs clang-format -i -style=file
2021-05-24 10:44:15 +02:00
Bernd Amend
55ec76fd39
fix testcase "Test unicode matches C++"
2021-05-22 23:54:18 +02:00
Bernd Amend
cf7821cb1e
fix ChaiScript#537
2021-05-22 18:45:12 +02:00
Bernd Amend
5ff3679811
fix u8"" compilation error in g++11 with -std=c++20
2021-05-22 18:45:12 +02:00
Bernd Amend
e8e47173fb
fix a couple of g++s -Wnoexcept warnings
2021-05-22 18:45:08 +02:00
Bernd Amend
c4e1e1965e
remove not required ";"
2021-05-22 14:09:24 +02:00
Bernd Amend
2b3bddb02d
replace typedef with using
2021-05-22 14:04:04 +02:00
draghan
0a3bc48788
Add unit test covering issue #481
...
Implemented unit test which is validating whether a lambda from
Chaiscript could return a boolean value without throwing any exception.
The same test case is checking whether lambda with boolean return value
could be called peacefully from Chaiscript.
2021-03-27 21:17:55 +01:00
Glen Fraser
cb9a8587b6
Remove MSVC special case in 'Object copy counts' unit test
2020-09-04 11:45:08 +02:00
Jason Turner
c737f2419b
Merge pull request #453 from AlekMosingiewicz/error_on_double_conversion
...
Error on double conversion
2018-08-15 13:33:13 -06:00
Jason Turner
44dab4d45c
Deal with returning of & to * types
2018-08-15 13:10:23 -06:00
Jason Turner
4be5e876b8
Add failing test for returning of & to *
2018-08-15 11:19:09 -06:00
Alek Mosingiewicz
a254e11286
Make information on source and target types in Type Conversion
...
Exception public.
2018-08-13 17:57:38 +02:00
Alek Mosingiewicz
27bee4a266
Bypass the mutex problem when looking for conversion, automatic
...
test.
2018-08-10 17:29:46 +02:00
Alek Mosingiewicz
67dcd3e8d8
Test case for BOM in user-provided string.
2018-05-22 17:12:14 +02:00
Alek Mosingiewicz
df6bc8f9b5
Add missing test cases.
2018-05-22 17:07:32 +02:00
Alek Mosingiewicz
be29b0a193
Merge branch 'develop' into handle-bom-in-script
2018-05-22 05:00:41 +02:00
Alek Mosingiewicz
b70a9e7a61
Non-ASCII characters now in random positions in test; test renamed.
2018-05-21 17:12:11 +02:00
Alek Mosingiewicz
efbebee9da
Throw exception when user-provided input contains BOM.
2018-05-13 10:25:04 +02:00
Alek Mosingiewicz
1e8f7f9fa5
Simplify BOM test.
2018-05-10 18:40:56 +02:00
Alek Mosingiewicz
1d782338c9
Cover skipping BOM with test.
2018-05-10 18:23:39 +02:00
Jason Turner
258cb23dda
Further fixes for compiled tests for VS 2015
2018-03-02 15:40:22 -07:00
Jason Turner
2818ec67df
Merge remote-tracking branch 'origin/develop' into apply_unicode_patches
2018-03-02 15:01:41 -07:00
Jason Turner
2e9512c6b8
Adjust unicode tests for MSVC
2018-03-02 08:54:27 -07:00
Jason Turner
12797c0a03
Add C++ tests to verify strings match
...
Re #415
2018-03-02 08:01:03 -07:00
Jason Turner
ad606c7cfa
Update to catch2 for MSVC2017 compat
2018-01-19 10:46:37 -07:00
Jason Turner
36e61dec0a
Fix defaults for dynload options
2017-06-06 14:59:05 -06:00
Jason Turner
76c7712507
Test custom exception handling #351
2017-06-05 19:36:40 -06:00
Jason Turner
252ea8072d
Add failing test for const return type #340
2017-05-30 08:29:43 -06:00
Jason Turner
283785faaf
Add PVS Studio and address some issues it found
2017-02-22 15:18:56 -07:00
Jason Turner
077c93ab27
Fix/enhance unique_ptr support
2017-02-04 09:14:07 -08:00
Gabriel Aubut-Lussier
2549b4e983
Add test to call base class methods through std::unique_ptr<derived>.
2017-02-03 23:19:25 -05:00
Jason Turner
2ce155237d
Add test for unique_ptr returned from function
2017-02-03 18:55:58 -08:00
Jason Turner
ca7d4ab734
Add test for calling method of unique_ptr var
2017-02-02 13:17:59 -08:00
Jason Turner
24352c62e8
Some clang specific fixes / warnings
2017-02-02 08:00:57 -08:00
Jason Turner
51663df1ba
Demonstrate workaround for pointer to ref member
...
closes #302
2016-12-06 14:51:00 -07:00
Jason Turner
624c7c435b
Add unit test for #302
2016-12-06 14:26:10 -07:00
Jason Turner
cf89bdd804
Update release notes, add chai type fun conversion test
2016-12-06 14:15:39 -07:00
Jason Turner
fb7f8f194c
Add support for r-value parameters and unique_ptr
...
Notes
* Due to the limitations for how Boxed_Value is handled
the unique_ptrs must still be wrapped in a shared_ptr
* However, this caveat does not directly affect the user
2016-12-05 12:07:56 -07:00
Jason Turner
359897a442
Flesh out parser and tracer usage cases
2016-10-28 13:36:10 -06:00
Jason Turner
0fe78f7ba5
Make sure to not break non-basic interface
2016-10-26 08:47:49 -06:00
Jason Turner
7d9e1b3af7
Add ability to disable loading external files
...
* Options are passed to ChaiScript constructor
* load_module / eval_file / use can be disabled
from script context
2016-10-17 20:51:15 -06:00
Jason Turner
b091439567
Merge branch 'release-5.x' into develop
2016-10-07 09:13:19 -06:00
Jason Turner
58faea1cf2
Add conversion to bool compile test
...
Re: #275
2016-10-06 14:52:34 -06:00
Jason Turner
b2907fc608
Merge branch 'release-5.x' into develop
2016-10-05 15:14:58 -06:00
Jason Turner
4b81a24a0a
Fix numeric mixed-convesion operations
2016-09-24 17:15:17 -06:00
Jason Turner
4e6e63ab5d
Cleanups and split up into _basic options
2016-08-27 10:33:44 -06:00