implementation of a simple "token enumerator"

This commit is contained in:
Martin Willi
2008-07-02 08:09:07 +00:00
parent 2f2b99282a
commit fca4d3ee03
6 changed files with 209 additions and 3 deletions
+5
View File
@@ -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
*/