Skip to content

Commit

Permalink
Added STATICARRAYLEN macro to mojoshader_opengl.c ...
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Apr 27, 2008
1 parent ac94a2d commit 107162b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mojoshader_opengl.c
Expand Up @@ -72,6 +72,8 @@ void MOJOSHADER_glSetVertexDeclaration(MOJOSHADER_usage usage, int index,

// 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;
Expand Down

0 comments on commit 107162b

Please sign in to comment.