diff options
author | notaz | 2010-12-07 12:45:07 +0200 |
---|---|---|
committer | notaz | 2010-12-14 15:25:04 +0200 |
commit | fa9cfe0a7ff390f15bfdc6add7e57841173d1954 (patch) | |
tree | 13308847990df618f760feaf4fd1e0783211dbe7 /frontend/pcnt.h | |
parent | ae602c19f527fbc1f44cdb744cf824d04b8eceb1 (diff) | |
download | pcsx_rearmed-fa9cfe0a7ff390f15bfdc6add7e57841173d1954.tar.gz pcsx_rearmed-fa9cfe0a7ff390f15bfdc6add7e57841173d1954.tar.bz2 pcsx_rearmed-fa9cfe0a7ff390f15bfdc6add7e57841173d1954.zip |
make PCNT stuff optional
Diffstat (limited to 'frontend/pcnt.h')
-rw-r--r-- | frontend/pcnt.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/pcnt.h b/frontend/pcnt.h index 57bc88a..d3eedfa 100644 --- a/frontend/pcnt.h +++ b/frontend/pcnt.h @@ -6,6 +6,8 @@ enum pcounters { PCNT_CNT }; +#ifdef PCNT + extern unsigned int pcounters[PCNT_CNT]; extern unsigned int pcounter_starts[PCNT_CNT]; @@ -50,3 +52,15 @@ static inline unsigned int pcnt_get(void) return val; } +#else + +#define pcnt_start(id) +#define pcnt_end(id) +#define pcnt_hook_plugins() + +static inline void pcnt_print(float fps) +{ + printf("%2.1f\n", fps); +} + +#endif |