fix g_uNumberOfDraws

This commit is contained in:
ConfiG 2023-06-07 19:07:42 +03:00
parent 11f2208767
commit ba40d39a2d
No known key found for this signature in database
GPG key ID: 44DA1983F524C11B
5 changed files with 6 additions and 1 deletions

View file

@ -245,7 +245,7 @@ It should work same as apples CFSwapInt32LittleToHost(..)
Increments the GL Draws counts by one.
The number of calls per frame are displayed on the screen when the CCDirector's stats are enabled.
*/
extern unsigned int __declspec(dllimport) g_uNumberOfDraws;
extern unsigned int ACTUAL_CC_DLL g_uNumberOfDraws;
#define CC_INCREMENT_GL_DRAWS(__n__) g_uNumberOfDraws += __n__
/*******************/

View file

@ -8,6 +8,7 @@
#else
#define CC_DLL
#endif
#define ACTUAL_CC_DLL CC_DLL
#define CC_NO_MESSAGE_PSEUDOASSERT(cond) \
if (!(cond)) { \

View file

@ -8,6 +8,7 @@
#else
#define CC_DLL
#endif
#define ACTUAL_CC_DLL CC_DLL
#define CC_ASSERT(cond) assert(cond)

View file

@ -8,6 +8,7 @@
#else
#define CC_DLL
#endif
#define ACTUAL_CC_DLL CC_DLL
#if CC_DISABLE_ASSERT > 0

View file

@ -9,8 +9,10 @@
#if defined(_USRDLL)
#define CC_DLL
#define ACTUAL_CC_DLL
#else // use a DLL library
#define CC_DLL
#define ACTUAL_CC_DLL __declspec(dllimport)
#endif
#include <assert.h>