generic_iterators
1.0.0
Demonstration of implementing and using type safe generic iterators in pure, standard C
typeclass.h
Go to the documentation of this file.
1
6
#ifndef IT_TYPECLASS_H
7
#define IT_TYPECLASS_H
8
23
#define typeclass(funcs) \
24
struct \
25
{ \
26
funcs; \
27
}
28
43
#define typeclass_instance(Typeclass) \
44
struct \
45
{ \
46
void* self; \
47
Typeclass const* tc; \
48
}
49
50
#endif
/* !IT_TYPECLASS_H */
typeclass.h
Generated by
1.9.2