mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
17 lines
582 B
C++
17 lines
582 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#ifndef pac_dbg_h
|
|
#define pac_dbg_h
|
|
|
|
#include <cassert>
|
|
#include <cstdio>
|
|
|
|
extern bool FLAGS_pac_debug;
|
|
|
|
constexpr void ASSERT(bool flag) { assert(flag); }
|
|
constexpr void ASSERT(int flag) { assert(flag); }
|
|
#define DEBUG_MSG(...) \
|
|
if ( FLAGS_pac_debug ) \
|
|
fprintf(stderr, __VA_ARGS__)
|
|
|
|
#endif /* pac_dbg_h */
|