HbbTv
17.9.0
Open source HBBTV engine
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
src
debug.h
1
/*******************************************************************************
2
* Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3
* Copyright © 2014 Ocean Blue Software Ltd
4
*
5
* This file is part of a DTVKit Software Component
6
* You are permitted to copy, modify or distribute this file subject to the terms
7
* of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8
*
9
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11
* OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12
*
13
* If you or your organisation is not a member of DTVKit then you have access
14
* to this source code outside of the terms of the licence agreement
15
* and you are expected to delete this and any associated files immediately.
16
* Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17
*******************************************************************************/
26
/* pre-processor mechanism so multiple inclusions don't cause compilation error*/
27
28
#ifndef _DEBUG_H
29
30
#define _DEBUG_H
31
32
#include "
hbbtv_sif_debug.h
"
33
34
/*---Constant and macro definitions for public use-----------------------------*/
35
36
#define TERROR 0
37
38
#ifdef TRACING
39
#define TRACE(t, x, args ...) if ((t == TERROR) || (t & HBBTV_DbgGetMask())) \
40
{ HBBTV_DBGPrint("[%s:%d] "x "\n", __FUNCTION__, __LINE__, ##args); }
41
#else
42
#define TRACE(t, x, args...)
43
#endif
44
45
#define xstr(s) str(s)
46
#define str(s) #s
47
#define VERSION_INFORMATION "DTVKit - HbbTV engine " xstr(HBBTV_VER_MAJOR) "." xstr(HBBTV_VER_MINOR) "." xstr(HBBTV_VER_PATCH)
48
49
50
/*---Enumerations for public use-----------------------------------------------*/
51
52
/*---Global type defs for public use-------------------------------------------*/
53
54
/*---Global Function prototypes for public use---------------------------------*/
55
60
U32BIT HBBTV_DbgGetMask(
void
);
61
62
#endif
/* _DEBUG_H */
hbbtv_sif_debug.h
System Interface, debug.
Generated on Tue Sep 19 2017 16:14:14 for HbbTv by
1.8.6