implementation of a simple "token enumerator"
This commit is contained in:
@@ -89,6 +89,11 @@
|
||||
*/
|
||||
#define malloc_thing(thing) ((thing*)malloc(sizeof(thing)))
|
||||
|
||||
/**
|
||||
* Get the number of elements in an array
|
||||
*/
|
||||
#define countof(array) (sizeof(array)/sizeof(array[0]))
|
||||
|
||||
/**
|
||||
* Assign a function as a class method
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user