summaryrefslogtreecommitdiff
path: root/include/helperfuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/helperfuncs.h')
-rw-r--r--include/helperfuncs.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/helperfuncs.h b/include/helperfuncs.h
index 44f9aba49..b4089fa18 100644
--- a/include/helperfuncs.h
+++ b/include/helperfuncs.h
@@ -27,13 +27,16 @@
#include <deque>
#include <sstream>
-/** Flags for use with log()
+/** Debug levels for use with InspIRCd::Log()
*/
-#define DEBUG 10
-#define VERBOSE 20
-#define DEFAULT 30
-#define SPARSE 40
-#define NONE 50
+enum DebugLevel
+{
+ DEBUG = 10,
+ VERBOSE = 20,
+ DEFAULT = 30,
+ SPARSE = 40,
+ NONE = 50,
+};
/* I'm not entirely happy with this, the ## before 'args' is a g++ extension.
* The problem is that if you #define log(l, x, args...) and then call it
@@ -45,8 +48,6 @@
#define STRINGIFY(x) STRINGIFY2(x)
#define log(l, x, args...) InspIRCd::Log(l, __FILE__ ":" STRINGIFY(__LINE__) ": " x, ##args)
-void readfile(file_cache &F, const char* fname);
-
void WriteOpers(const char* text, ...);
void WriteOpers_NoFormat(const char* text);