diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-11 23:06:30 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-11 23:06:30 +0200 |
commit | 0600edd49d06224eafb6fb096f42944722da92b1 (patch) | |
tree | 35196a43e118a1ecd3e05673454f9534f7632bdb /src/core | |
parent | Merge pull request #230 from Nick007J/master (diff) | |
download | re3-0600edd49d06224eafb6fb096f42944722da92b1.tar re3-0600edd49d06224eafb6fb096f42944722da92b1.tar.gz re3-0600edd49d06224eafb6fb096f42944722da92b1.tar.bz2 re3-0600edd49d06224eafb6fb096f42944722da92b1.tar.lz re3-0600edd49d06224eafb6fb096f42944722da92b1.tar.xz re3-0600edd49d06224eafb6fb096f42944722da92b1.tar.zst re3-0600edd49d06224eafb6fb096f42944722da92b1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/common.h | 2 | ||||
-rw-r--r-- | src/core/re3.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h index 3ea37071..920b7108 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -319,7 +319,7 @@ _TWEEKCLASS(CTweakFloat, float); #undef _TWEEKCLASS #ifdef VALIDATE_SAVE_SIZE -static int32 _bufBytesRead; +extern int32 _bufBytesRead; #define INITSAVEBUF _bufBytesRead = 0; #define VALIDATESAVEBUF(b) assert(_bufBytesRead == b); #else diff --git a/src/core/re3.cpp b/src/core/re3.cpp index b9b5c76e..c8b50d55 100644 --- a/src/core/re3.cpp +++ b/src/core/re3.cpp @@ -447,6 +447,10 @@ void re3_trace(const char *filename, unsigned int lineno, const char *func, cons OutputDebugStringA(buff); } +#ifdef VALIDATE_SAVE_SIZE +int32 _bufBytesRead; +#endif + void patch() { |