mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
VideoCommon/Statistics: Require semicolons after statistics macros
This is clearer and reduces IntelliSense problems.
This commit is contained in:
@@ -90,11 +90,32 @@ extern Statistics g_stats;
|
||||
#define STATISTICS
|
||||
|
||||
#ifdef STATISTICS
|
||||
#define INCSTAT(a) (a)++;
|
||||
#define ADDSTAT(a, b) (a) += (b);
|
||||
#define SETSTAT(a, x) (a) = (int)(x);
|
||||
#define INCSTAT(a) \
|
||||
do \
|
||||
{ \
|
||||
(a)++; \
|
||||
} while (false)
|
||||
#define ADDSTAT(a, b) \
|
||||
do \
|
||||
{ \
|
||||
(a) += (b); \
|
||||
} while (false)
|
||||
#define SETSTAT(a, x) \
|
||||
do \
|
||||
{ \
|
||||
(a) = static_cast<int>(x); \
|
||||
} while (false)
|
||||
#else
|
||||
#define INCSTAT(a) ;
|
||||
#define ADDSTAT(a, b) ;
|
||||
#define SETSTAT(a, x) ;
|
||||
#define INCSTAT(a) \
|
||||
do \
|
||||
{ \
|
||||
} while (false)
|
||||
#define ADDSTAT(a, b) \
|
||||
do \
|
||||
{ \
|
||||
} while (false)
|
||||
#define SETSTAT(a, x) \
|
||||
do \
|
||||
{ \
|
||||
} while (false)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user