trace.h 204 B

12345678910
  1. #ifndef trace_h
  2. #define trace_h
  3. #include <iostream>
  4. #include <stdlib.h>
  5. #define LOG(x) {std::cout << x << std::flush; }
  6. #define TRACE(x) {if (getenv("TRACE")) { std::cout << x << std::flush; }}
  7. #endif