src/common.h

changeset 322
5e701c3c3d8e
parent 321
48e429bfd58c
child 327
9ea604af1319
equal deleted inserted replaced
321:48e429bfd58c 322:5e701c3c3d8e
246 LOG_Warning, 246 LOG_Warning,
247 LOG_Error, 247 LOG_Error,
248 LOG_Dev, 248 LOG_Dev,
249 }; 249 };
250 250
251 // logf - universal access to the message log. Defined here so that I don't have 251 // log() - universal access to the message log. Defined here so that I don't have
252 // to include gui.h here and recompile everything every time that file changes. 252 // to include msglog.h here and recompile everything every time that file changes.
253 // logf is defined in main.cpp 253 void DoLog( std::initializer_list<StringFormatArg> args );
254 void logf (const char* fmtstr, ...) FORMAT_PRINTF (1, 2); 254 #ifndef IN_IDE_PARSER
255 void logf (LogType type, const char* fmtstr, ...) FORMAT_PRINTF (2, 3); 255 # define log(...) DoLog({ __VA_ARGS__ });
256 #else
257 void log( const char* fmtstr, ... );
258 #endif
259
256 // ----------------------------------------------------------------------------- 260 // -----------------------------------------------------------------------------
257 // Vertex at (0, 0, 0) 261 // Vertex at (0, 0, 0)
258 extern const vertex g_origin; 262 extern const vertex g_origin;
259 263
260 // ----------------------------------------------------------------------------- 264 // -----------------------------------------------------------------------------

mercurial