-
Notifications
You must be signed in to change notification settings - Fork 2
/
KxLogger.h
executable file
·37 lines (27 loc) · 940 Bytes
/
KxLogger.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
//
// KxLogger.h
// kxmovie
//
// Created by Mathieu Godart on 01/05/2014.
//
//
#ifndef kxmovie_KxLogger_h
#define kxmovie_KxLogger_h
//#define DUMP_AUDIO_DATA
#ifdef DEBUG
#ifdef USE_NSLOGGER
# import "NSLogger.h"
# define LoggerStream(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Stream", level, __VA_ARGS__)
# define LoggerVideo(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Video", level, __VA_ARGS__)
# define LoggerAudio(level, ...) LogMessageF(__FILE__, __LINE__, __FUNCTION__, @"Audio", level, __VA_ARGS__)
#else
# define LoggerStream(level, ...) NSLog(__VA_ARGS__)
# define LoggerVideo(level, ...) NSLog(__VA_ARGS__)
# define LoggerAudio(level, ...) NSLog(__VA_ARGS__)
#endif
#else
# define LoggerStream(...) while(0) {}
# define LoggerVideo(...) while(0) {}
# define LoggerAudio(...) while(0) {}
#endif
#endif