From 187c9208f119904d2da292670d5858e99d1306e2 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 12:28:57 +0000 Subject: Fix FOREACH_MOD macros git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4881 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspircd.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'include/inspircd.h') diff --git a/include/inspircd.h b/include/inspircd.h index 3800c09ab..2ae54134e 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -47,17 +47,6 @@ enum DebugLevel 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 - * with only two parameters, you get do_log(l, x, ), which is a syntax error... - * The ## tells g++ to remove the trailing comma... - * If this is ever an issue, we can just have an #ifndef GCC then #define log(a...) do_log(a) - */ -#define STRINGIFY2(x) #x -#define STRINGIFY(x) STRINGIFY2(x) -#define log(l, x, args...) ServerInstance->Log(l, __FILE__ ":" STRINGIFY(__LINE__) ": " x, ##args) -#define ilog(i, l, x, args...) i->Log(l, __FILE__ ":" STRINGIFY(__LINE__) ": " x, ##args) - /* This define is used in place of strcmp when we * want to check if a char* string contains only one * letter. Pretty fast, its just two compares and an -- cgit v1.2.3