Improve.
[eruntime.git] / include / eruntime / smalloc.h
blob1c65d1fa77424d5befc0c1ae29d68b7f394f7502
1 #ifndef ERUNTIME_SMALLOC_H
2 # define ERUNTIME_SMALLOC_H
4 # include <stddef.h>
6 # ifdef __ERUNTIME__
7 typedef struct _oom_data_struct
9 enum
11 OOM_SMALLOC
13 } caller;
15 union
17 size_t size;
19 } a;
21 } oom_data_t;
22 # endif /* ! __ERUNTIME__ */
24 void *smalloc (size_t);
25 void sfree (void *);
27 #endif /* ! ERUNTIME_SMALLOC_H */
30 * vim: ts=8 sw=8 noet fdm=marker tw=80