Remove s_assert definition from ircd_defs.h and add it to its own header.

s_assert requires some higher-level functionality that shouldn't be
present in ircd_defs.h. ircd_defs.h is used by ssld, which has no notion
of logging or sending IRC messages. Additionally, some of the headers
s_assert depends on result in conflicting definitions in ssld.c.

This change also fixes the compile when using --enable-assert=soft.
This commit is contained in:
Keith Buck 2013-09-10 05:35:56 +00:00
parent d8c3d5fe97
commit 77d3d2dbaf
48 changed files with 120 additions and 31 deletions

View file

@ -42,6 +42,7 @@
#include "modules.h"
#include "packet.h"
#include "messages.h"
#include "logger.h"
static int mo_omode(struct Client *, struct Client *, int, const char **);