Patrick Pelissier
6b064870f5
Rename CLEAN operator in RESET operator
2021-10-30 23:26:27 +02:00
Patrick Pelissier
510cd062ba
Rename DICT, TUPLE & VARIANT _clean in _reset to avoid confusing _clean & _clear functions. See #97
2021-10-28 17:51:17 +02:00
Patrick Pelissier
3e36363d28
Fix format
2021-10-09 10:08:13 +02:00
Patrick Pelissier
1e00a102e8
TUPLE: Defined HASH/CMP/EQUAL methods if at least ONE methods is defined in the fields. Fields that don't have or have disabled method are supposed to be secondary fields that are not pertinent for comparing the objects.
2021-09-23 23:03:30 +02:00
Patrick Pelissier
353daecbd1
Comment new code.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
57441b2fc1
Add first draft of recursive
...
INIT_WITH macro for tuples.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
b225600238
Add internal functions for tuple
...
that are needed for future INIT_WITH support.
2021-07-01 22:12:15 +02:00
Patrick Pelissier
a950e15625
Adding method for NAME operator for basic containers
2021-06-12 11:11:30 +02:00
Patrick Pelissier
c4d339cb62
Rename internal interface.
2021-02-13 11:45:16 +01:00
Patrick Pelissier
517da1b999
Rename generated internal functions
...
to avoid "poluting" userspace naming.
2021-02-13 11:45:05 +01:00
Patrick Pelissier
25497bd96f
Factorize code so that _DEF macros use _DEF_AS ones
2021-02-07 23:04:59 +01:00
Patrick Pelissier
07eb5697ab
Remove limitation of M_AS_STR to be called within a M_APPLY
2021-02-06 22:22:50 +01:00
Patrick Pelissier
25fe26deaa
Happy new year
2021-01-13 20:18:01 +01:00
Patrick Pelissier
eabc867c2a
Rename used namespace for C++ to m_lib
2021-01-10 08:48:46 +01:00
Patrick Pelissier
26eb882a30
Rename tuple function :
...
* _init_set2 in _init_emplace
* _set2 in _emplace
due to better & clearer naming.
(API break)
2020-12-05 12:29:20 +01:00
Patrick Pelissier
a29682ca29
Create M_ASSERT macro to encapsulate assert within M*LIB
...
The goal is to enable the user to override this macro if needed so that it can enable or disable the M*LIB witout impacting its own assertions.
2020-10-29 22:46:17 +01:00
Patrick Pelissier
0818d0ac7c
Fix macro formatting.
2020-10-23 21:46:34 +02:00
Patrick Pelissier
54d4b80368
Reformat macro to 80 characters
2020-10-21 23:23:40 +02:00
Patrick Pelissier
5b89196cd7
Add macro TUPLE_DEF2_AS
2020-10-03 14:07:14 +02:00
Patrick Pelissier
feb8b30048
Factorization of M_C(name, _t)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
b3a1a75f6f
Rename internal types:
...
a suffix ending with _ct means confidential type
ans is reserved for M*LIB internal usage.
OPLIST doesn't use the external types
but rather the internal types.
It enables to be independent of the real names
of the external types.
Such external names are planned to be fully customizable
(i.e. the user may define a name that suits its coding style)
2020-10-03 14:07:14 +02:00
Patrick Pelissier
f4cd8eaff9
Rename internal macro to TUPLEI_
2020-07-25 18:01:34 +02:00
Patrick Pelissier
2cd5258f89
Add comments
...
Replace TAB by SPACE.
2020-07-25 17:54:01 +02:00
Patrick Pelissier
8a36b5ff15
Workaround to avoid CLANG unused function warnings
2020-07-09 22:14:00 +02:00
Patrick Pelissier
ef74f8eb55
Fix other warnings about conversion but in C++
2020-06-14 01:10:37 +02:00
Patrick Pelissier
9c723da768
Change format of errror on oplist
...
This is to enable M_GLOBAL_OPLIST_OR_DEF to properly expand the erroneous oplist to the backend generator, that will report the error.
As such the erreneous oplist is surrounded by two pairs of brackets (())
2020-05-30 17:54:22 +02:00
Patrick Pelissier
92bddcaab4
Fix preprocessing issue
...
in case of recursive tuple or variant.
2020-05-30 12:13:43 +02:00
Patrick Pelissier
7761fb6bf1
Add contract for tuple & variant.
2020-05-24 19:08:18 +02:00
Patrick Pelissier
3885cb29a2
Add control of type and oplists
2020-05-17 11:53:27 +02:00
Patrick Pelissier
3cde7a1731
Add protection for use of oplist within a container oplist
2020-05-15 21:46:03 +02:00
Patrick Pelissier
6774afd751
Add checks of missing oplist in the last _DEF macros
2020-05-11 20:54:50 +02:00
Patrick Pelissier
4f7b0b9455
Happy new year 2020
2020-01-04 15:41:06 +01:00
Patrick Pelissier
90f248fbe8
Rename interface field of serial object into m_interface (WINDOWS compatibility as it defines a macro called interface)
2019-12-06 21:13:37 +01:00
Patrick Pelissier
0a99814ce2
Fix comments
2019-08-06 20:47:24 +02:00
Patrick Pelissier
60a10eb799
Uniformize the macro names
2019-06-09 12:02:38 +02:00
Patrick Pelissier
05a68157bc
Add local argument to serial interface to enable serial interface to create local parameters if needed (for example for serial binary)
2019-05-18 11:17:14 +02:00
Patrick Pelissier
12ba563416
Add assertions
2019-05-18 11:17:14 +02:00
Patrick Pelissier
b525723084
Implement Serial Json Read tuple
2019-05-18 11:17:13 +02:00
Patrick Pelissier
6c7ff1c723
Update/fix bugs
2019-05-18 11:17:13 +02:00
Patrick Pelissier
3b2aad1b2e
Export new methods for tuple
2019-05-18 11:17:13 +02:00
Patrick Pelissier
5222fabf02
Add tuple support for serial
2019-05-18 11:17:13 +02:00
Patrick Pelissier
8b3a4a802c
Happy new year!
2019-01-02 18:12:07 +01:00
Patrick Pelissier
fd9d308b28
Allow tuple initilization in M_LET
2018-10-27 09:28:17 +02:00
Patrick Pelissier
546b756932
Port TUPLE & VARIANT to API transformation infrastructure.
2018-09-25 21:38:31 +02:00
Patrick Pelissier
3452b72add
Fix regression of M*LIB:
...
oplist of tuple/variant wasn't able to detect the default INIT creation
as no valid OPLIST was passed in the absence of OPLIST.
Give the explicit default OPLIST in this case.
2018-09-15 15:30:03 +02:00
Patrick Pelissier
2e3b312fab
Fix issue of recursive usage of M_GLOBAL_OPLIST_OR_DEF
...
Update the way to use the macro to avoid being limited by the
preprocessor limitation.
2018-09-14 20:57:55 +02:00
Patrick Pelissier
9c0724ddb9
Simplification.
2018-09-08 09:10:37 +02:00
Patrick Pelissier
ce948bd9ce
Make INIT optional for TUPLE.
2018-09-08 09:02:54 +02:00
Patrick Pelissier
c9ebedb01f
Rename _get_ methods for tuple & variants into _get_at_ methods.
...
Add _cget_at_ methods too.
2018-08-21 23:58:03 +02:00
Patrick Pelissier
8f85c71654
Rename some internal macros to a better name.
2018-08-21 22:15:11 +02:00