forked from dgis/OGLE-for-GLIntercept
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommonErrorLog.h
32 lines (26 loc) · 1.52 KB
/
CommonErrorLog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*=============================================================================
GLIntercept - OpenGL intercept/debugging tool
Copyright (C) 2004 Damian Trebilco
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
=============================================================================*/
#ifndef __COMMON_ERROR_LOG_H_
#define __COMMON_ERROR_LOG_H_
//Defines how logging is handled in Plugins
// This file must be defined and be in the include path so the common
// tools know how to log error messages. Other projects only need to define
// the following #defines to use the common tools. (can be empty defines for no logging)
#include "../../MainLib/InterceptPluginInterface.h"
#define USING_ERRORLOG extern LOGERRPROC errorLog;
#define LOGMSG(string) { if(errorLog){errorLog string;}}
#define LOGERR(string) { if(errorLog){errorLog string;}}
#endif // __COMMON_ERROR_LOG_H_