- c define to classes (pattern?)
- //header.h
- class Hardcoded
- {
- public:
- static int param;
- };
- //implementation.cpp
- #include "header.h"
- int Hardcoded::param = 0;
- #define PARAM Hardcoded::param
- #if QLZ_COMPRESSION_LEVEL == 1
- state->hash[i].offset = 0;
- #else
- state->hash_counter[i] = 0;
- #endif