mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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