mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
548f939df5
separate tracker type by #defining __TRACKER_NAME and __TRACKER_GLOBAL_OFFSET. eg.: Then if you have a tracked value and a value of the same type at the given offset: Tracker_1<int32_t> trackedInt; int32_t trackedIntDirty = 0; // 4 bytes after trackedIntDirty will become 1 everytime trackedInt changes. git-svn-id: https://svn.eduke32.com/eduke32@3119 1a8010ca-5511-0410-912e-c29ae57300e0
11 lines
No EOL
326 B
C++
11 lines
No EOL
326 B
C++
#define __TRACKER_OPERATOR =
|
|
#define __TRACKER_NOOP __TRACKER_NOOP_RIGHTHAND_EQUAL
|
|
#include "tracker_operator.hpp"
|
|
#undef __TRACKER_OPERATOR
|
|
#undef __TRACKER_NOOP
|
|
|
|
#define __TRACKER_OPERATOR +=
|
|
#define __TRACKER_NOOP __TRACKER_NOOP_RIGHTHAND_ZERO
|
|
#include "tracker_operator.hpp"
|
|
#undef __TRACKER_OPERATOR
|
|
#undef __TRACKER_NOOP |