mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Added AUTO_COLLECTION_INITIALIZER
git-svn-id: svn://svn.cc65.org/cc65/trunk@977 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3752afa685
commit
371fcf48da
@ -45,6 +45,17 @@
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Data */
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* An empty collection */
|
||||
const Collection EmptyCollection = STATIC_COLLECTION_INITIALIZER;
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Code */
|
||||
/*****************************************************************************/
|
||||
|
@ -59,9 +59,15 @@ struct Collection {
|
||||
void** Items; /* Array with dynamic size */
|
||||
};
|
||||
|
||||
/* An empty collection */
|
||||
extern const Collection EmptyCollection;
|
||||
|
||||
/* Initializer for static collections */
|
||||
#define STATIC_COLLECTION_INITIALIZER { 0, 0, 0 }
|
||||
|
||||
/* Initializer for auto collections */
|
||||
#define AUTO_COLLECTION_INITIALIZER EmptyCollection;
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user