Patrick Pelissier
6d2900a2bd
Improve coverage of test suite.
2023-04-27 00:04:44 +02:00
Patrick Pelissier
573e09c56e
Remove variable number of elements support which was not working.
...
Request an explicit number of elements.
2023-04-27 00:04:03 +02:00
Patrick Pelissier
0a39a17d36
The undefined number of element value of serial _array_start
...
is now (size_t)-1 and no longer 0.
Moreoever, a serialization interface may refuse outputting data
if it doesn't know the number of elements.
In which case, the container shall explictly compute the number
of elements and recall the serial object _array_start method.
2023-04-27 00:01:50 +02:00
Patrick Pelissier
a913d0947c
Rewrite code to fix coverage
2023-04-26 23:34:13 +02:00
Patrick Pelissier
abbd8ad6ce
Update
2023-04-26 22:56:23 +02:00
Patrick Pelissier
a09c9fe1c3
Update
2023-04-26 22:56:23 +02:00
Patrick Pelissier
219c62ff5d
Provide a way to alter the standard naming convention for the functions
...
Close #72
2023-04-22 09:33:08 +02:00
Patrick Pelissier
272a326375
Fix warning issue for coverage
2023-04-22 09:23:18 +02:00
Patrick Pelissier
eca79f2c80
Improve coverage of test suite
2023-04-21 22:44:34 +02:00
Patrick Pelissier
2feda4059f
Fix issue in case of invalid IO
2023-04-21 22:44:23 +02:00
Patrick Pelissier
de0ef67cf2
Fix build issue with VC++
2023-04-19 23:06:23 +02:00
Patrick Pelissier
95762a058c
Fix const attribute of _get_emplace
2023-04-19 22:42:21 +02:00
Patrick Pelissier
acd8671017
Fix test case according to contract.
2023-04-19 22:37:54 +02:00
Patrick Pelissier
a6c1688f23
Fix issue in remove root node for tree (part 2)
2023-04-19 22:37:40 +02:00
Patrick Pelissier
f6ed549ce5
Fix issue in tree_remove for root node index (Part 2)
...
Enable support of removing root node
In this case, it considers the first child of the root as the new root (breaking symetry)
2023-04-18 23:24:48 +02:00
Patrick Pelissier
8639fdbd98
Fix issue in tree_remove when it is root node (part 1)
2023-04-18 22:56:56 +02:00
Patrick Pelissier
693b09387f
Improve coverage of test suite.
2023-04-18 22:19:41 +02:00
Patrick Pelissier
4052d3794b
Tree: Transform runtime tests into assertion
...
as it is proven that it cannot happen.
2023-04-18 22:19:28 +02:00
Patrick Pelissier
044e9c3bf7
Fix benchmark
2023-04-17 16:56:57 +02:00
Patrick Pelissier
45a2a1afb2
Add bench for CC
2023-04-16 21:16:04 +02:00
Patrick Pelissier
b44e4e09dd
Don't use builtin for clang as they are not properly supported.
2023-04-16 20:11:56 +02:00
Patrick Pelissier
5158059ec4
Make m_throw a classic "cold" function rather than a static inline function.
...
Since the function shall be rarely called, there is no point in inlining/duplicating it
in several units.
2023-04-16 19:26:15 +02:00
Patrick Pelissier
7279011f0a
Use of the builtin versions of setjmp /longjmp for GCC / CLANG
...
They are more than twice faster on extreme bench of M\_LET / M\_TRY scenario
(and still twice slower than C++).
They also use less stack usage.
2023-04-16 19:18:04 +02:00
Patrick Pelissier
79369e9b05
Update README
2023-04-16 19:16:08 +02:00
Patrick Pelissier
58a7a7c214
Add gene TRY
2023-04-16 19:15:54 +02:00
Patrick Pelissier
e3e94ca238
Add M_ATTR_COLD_FUNCTION attribute
2023-04-16 19:15:22 +02:00
Patrick Pelissier
ae81271b2a
Fix name of internal variable for M_DEFER
2023-04-16 08:33:45 +02:00
Patrick Pelissier
d9c3724cff
Compatiblity with C++
2023-04-15 23:18:45 +02:00
Patrick Pelissier
1ff9848384
Update test so that it tests also the case of throwing without any try section (override M_RAISE_FATAL)
2023-04-15 22:51:57 +02:00
Patrick Pelissier
83e7f2a641
Use of new M_ATTR_NO_RETURN attribute
2023-04-15 22:50:47 +02:00
Patrick Pelissier
6580601969
Add M_ATTR_NO_RETURN attribute support (not C23 compatible yet)
2023-04-15 22:50:27 +02:00
Patrick Pelissier
ad023bb09d
Improve coverage of the test suite
2023-04-13 23:27:01 +02:00
Patrick Pelissier
b5df21f9c5
Simplify function: for LCA both iterators shall be in the same tree
2023-04-13 23:26:12 +02:00
Patrick Pelissier
d2dccbf514
Add table of contents
2023-04-12 20:35:22 +02:00
Patrick Pelissier
a8075cbb05
Transform runtime test into assertion
...
as it is proven that it cannot happen.
2023-04-11 21:57:56 +02:00
Patrick Pelissier
1322afc4c9
Improve coverage of test suite
2023-04-11 21:53:14 +02:00
Patrick Pelissier
0f885fb158
Fix coverage source for m-core
2023-04-11 21:32:57 +02:00
Patrick Pelissier
25a2eb0875
Correct syntax
2023-04-11 21:32:38 +02:00
Patrick Pelissier
6bcd51f10f
Complete coverage synthesis
...
with branch coverage information
2023-04-11 21:09:40 +02:00
Patrick Pelissier
9c1cb9c835
Update doc
2023-04-11 00:07:33 +02:00
Patrick Pelissier
19cb329ae6
Simplfy example
2023-04-11 00:05:41 +02:00
Patrick Pelissier
8099e6a94f
Update doc
2023-04-11 00:04:46 +02:00
Patrick Pelissier
ce6cc080d6
Improve coverage of test suite
2023-04-10 23:09:18 +02:00
Patrick Pelissier
a27b0b4014
Fix wrong parsing of malformed dict.
2023-04-10 23:08:51 +02:00
Patrick Pelissier
e74f80cc59
Update doc
2023-04-08 11:32:15 +02:00
Patrick Pelissier
bafd307247
Update performance chapter
2023-04-08 11:27:37 +02:00
Patrick Pelissier
6bed3ac697
Print time with 2 digits after the decimal
2023-04-08 11:25:59 +02:00
Patrick Pelissier
b8a9073fc9
Fix issue to generate graph without any repetition
2023-04-08 11:25:05 +02:00
Patrick Pelissier
da3e71c676
Fix introduced warning in release mode
2023-04-08 11:23:32 +02:00
Patrick Pelissier
4ea83e129e
Improve coverage of test suite
2023-04-08 00:17:33 +02:00