mojoshader_opengl.c
branchtrunk
changeset 208 30fe7b63db09
parent 207 d9cee469e080
child 209 2bd25adf2d3a
--- a/mojoshader_opengl.c	Sun Apr 27 02:36:15 2008 -0400
+++ b/mojoshader_opengl.c	Sun Apr 27 02:47:55 2008 -0400
@@ -72,6 +72,8 @@
 
 // Get basic wankery out of the way here...
 
+#define STATICARRAYLEN(x) ( (sizeof ((x))) / (sizeof ((x)[0])) )
+
 typedef unsigned int uint;  // this is a printf() helper. don't use for code.
 typedef uint8_t uint8;
 typedef uint32_t uint32;