Add ARRAY_INIT_VALUE

This commit is contained in:
Patrick Pelissier committed 2021-08-15 21:44:36 +02:00
1 parent 9c2468c2b7
commit f8b4f44105
3 files changed
+27

No files matched your search

+6
View File
@@ -53,6 +53,12 @@
(__VA_ARGS__ )))
/* Define an init value to init global variables of type array.
USAGE:
array_t global_variable = ARRAY_INIT_VALUE(array_oplist);
*/
#define ARRAY_INIT_VALUE() \
{ { 0, 0, NULL } }
/********************************************************************************/
/********************************** INTERNAL ************************************/