diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-13 08:24:04 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-10-13 08:24:04 -0400 |
commit | 8f2f66a7b90f97911bbffce3ccc8c7ad01ba61ad (patch) | |
tree | ab5ef98d3264bd91411b92cf03937c2774cff961 /include | |
parent | bd80f4081451e6ef25b763d5f74891075936fdd0 (diff) |
cleaning source
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/common.h b/include/common.h index 7df147f..b2ef8a3 100644 --- a/include/common.h +++ b/include/common.h @@ -39,7 +39,9 @@ enum GENDER{ #define initRand(s) srand(s) #define getRand() rand() -template<typename T, size_t N> //this fuction returns the size of any array +#define DEBUG_printf( message, ...) DEBUG_prints(__FILE__, __LINE__, message, __VA_ARGS__ ) + +template<typename T, size_t N> //this fuction returns the size of any array int eAmt(T (&)[N]){return N;} extern bool gameRunning; @@ -55,6 +57,4 @@ extern Mix_Chunk *horn; GLuint loadTexture(const char *fileName); void DEBUG_prints(const char* file, int line, const char *s,...); -#define DEBUG_printf( message, ...) DEBUG_prints(__FILE__, __LINE__, message, __VA_ARGS__) //IF THERE IS NO VA_ARGS AT THE END OF A CALL, SUBSTITUTE IT WITH [ NULL ] - #endif // COMMON_H |