Fixed warning when building stub_mm plugin.
4 // log_plugin.h - generic/common logging routines/macros for plugin codebases
9 * This file is part of Metamod.
11 * Metamod is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at
14 * your option) any later version.
16 * Metamod is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with Metamod; if not, write to the Free Software Foundation,
23 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 * In addition, as a special exception, the author gives permission to
26 * link the code of this program with the Half-Life Game Engine ("HL
27 * Engine") and Modified Game Libraries ("MODs") developed by Valve,
28 * L.L.C ("Valve"). You must obey the GNU General Public License in all
29 * respects for all of the code used other than the HL Engine and MODs
30 * from Valve. If you modify this file, you may extend this exception
31 * to your version of the file, but you are not obligated to do so. If
32 * you do not wish to do so, delete this exception statement from your
40 #include <enginecallback.h> // ALERT()
41 #include <sdk_util.h> // UTIL_VarArgs()
47 // LOG_DEBUG(3, ("return code: %d", ret));
48 #define LOG_DEBUG(level, args) \
49 do { if(plugin_debug->value >= level) ALERT(at_logged, "[%s] debug(%d): %s\n", Plugin_info.logtag, level, UTIL_VarArgs args ); } while(0)
51 // max buffer size for printed messages
52 #define MAX_LOGMSG_LEN 1024
54 extern cvar_t init_plugin_debug;
55 extern cvar_t *plugin_debug;
57 void log_init(const char *cvarname);
59 #endif /* LOG_PLUGIN_H */