mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
on unix, but client screens don't simulate events other than mouse move. also not supporting clipboard at all yet and the main app is just a temporary framework to test with. must clean up protocol and communication.
20 lines
230 B
C++
20 lines
230 B
C++
#ifndef CTRACE_H
|
|
#define CTRACE_H
|
|
|
|
class CTrace {
|
|
public:
|
|
static void print(const char* fmt, ...);
|
|
};
|
|
|
|
#if defined(NDEBUG)
|
|
|
|
#define TRACE(_X)
|
|
|
|
#else // NDEBUG
|
|
|
|
#define TRACE(_X) CTrace::print ## _X
|
|
|
|
#endif // NDEBUG
|
|
|
|
#endif
|