mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 07:39:17 +00:00
VideoCommon/Statistics: Require semicolons after statistics macros
This is clearer and reduces IntelliSense problems.
This commit is contained in:
parent
0628794cb6
commit
fe559f3ed3
2 changed files with 31 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue