forked from dliganov/Chaotic-DAW
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Awful_logger.h
43 lines (30 loc) · 1.75 KB
/
Awful_logger.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
33
34
35
36
37
38
39
40
41
42
43
#ifndef _CHAOTIC_LOGGER_
#define _CHAOTIC_LOGGER_
/*==================================================================================================
Module Name: Awful_logger.h
General Description: Logging utility functions are declared here.
====================================================================================================
Revision History:
Modification
Author Date Major Changes
---------------------- ------------ -------------
Alexander Veprik 09/01/2008 Initial version
==================================================================================================*/
//=================================================================================================
// Include Section
//=================================================================================================
//=================================================================================================
// Global/Static Variable Section
//=================================================================================================
//=================================================================================================
// Global function declaration
//=================================================================================================
#if (ENABLE_LOGGING == 1)
extern void AwfulLogData(const char* filename, unsigned int line, const char* text);
#define LogData(text) AwfulLogData(__FILE__, __LINE__, text)
#define DBG1(text) AwfulLogData(NULL, -1, text)
#else
#define LogData(text) NULL
#define DBG1(text) NULL
#endif
#endif /* _CHAOTIC_LOGGER_ */