diff src/tools.h @ 55:01ed2bc37eed

Radial gradient paint
author Thinker K.F. Li <thinker@branda.to>
date Sun, 10 Aug 2008 16:44:21 +0800
parents db2aa914e14b
children 9ab15ebc9061
line wrap: on
line diff
--- a/src/tools.h	Sun Aug 10 00:29:11 2008 +0800
+++ b/src/tools.h	Sun Aug 10 16:44:21 2008 +0800
@@ -63,4 +63,7 @@
 	}						\
     } while(0)
 
+
+#define O_ALLOC(type) ((type *)malloc(sizeof(type)))
+
 #endif /* __TOOLS_H_ */