diff options
Diffstat (limited to 'grpc-proxy/log.h')
-rw-r--r-- | grpc-proxy/log.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/grpc-proxy/log.h b/grpc-proxy/log.h new file mode 100644 index 0000000..d0a5275 --- /dev/null +++ b/grpc-proxy/log.h @@ -0,0 +1,11 @@ +#pragma once + +#include <cstdio> + +//#define DEBUG + +#if !defined(LOG) && defined(DEBUG) +#define LOG(fmt, ...) do { fprintf(stderr, "%s() " fmt, __func__, ##__VA_ARGS__); } while (0) +#else +#define LOG(fmt, ...) do {} while (0) +#endif |