diff -r 425d4279856f -r 35f06c5eeb0e src/cx/list.h --- a/src/cx/list.h Sun May 21 11:52:58 2023 +0200 +++ b/src/cx/list.h Sun May 21 14:03:21 2023 +0200 @@ -632,6 +632,14 @@ __attribute__((__nonnull__)) void cxListDestroy(CxList *list); +/** + * A shared instance of an empty list. + * + * Writing to that list is undefined. + */ +extern CxList * const cxEmptyList; + + #ifdef __cplusplus } // extern "C" #endif