Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. c   define to classes (pattern?)
  2. //header.h
  3. class Hardcoded
  4. {
  5. public:
  6.    static int param;
  7. };
  8.  
  9. //implementation.cpp
  10. #include "header.h"
  11. int Hardcoded::param = 0;
  12.        
  13. #define PARAM Hardcoded::param
  14.        
  15. #if QLZ_COMPRESSION_LEVEL == 1
  16.         state->hash[i].offset = 0;
  17. #else
  18.         state->hash_counter[i] = 0;
  19. #endif