FireBirdLib - Topfield TMS PVR TAP Programming Library
CallTraceComment.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
FBLib_debug.h
"
3
4
void
CallTraceComment
(
char
*Comment)
5
{
6
char
Spaces[101];
7
byte
*ISOText;
8
9
if
(Comment)
10
{
11
if
(!
CallTraceInitialized
)
CallTraceInit
();
12
13
Spaces[0] =
'\0'
;
14
15
if
(
CallTraceEnabled
)
16
{
17
memset(Spaces,
' '
,
CallLevel
< 50 ?
CallLevel
<< 1 : 100);
18
Spaces[
CallLevel
<
CTSTACKSIZE
?
CallLevel
<< 1 : 100] =
'\0'
;
19
20
StrToISOAlloc
(Comment, &ISOText);
21
if
(ISOText && *ISOText)
TAP_Print
(
"%s# %s\n"
, Spaces, ISOText);
22
TAP_MemFree(ISOText);
23
}
24
}
25
}
CallTraceComment
void CallTraceComment(char *Comment)
Definition:
CallTraceComment.c:4
CallTraceInitialized
bool CallTraceInitialized
Definition:
CallTraceInit.c:6
CallLevel
dword CallLevel
Definition:
CallTraceInit.c:3
CallTraceEnabled
bool CallTraceEnabled
Definition:
CallTraceInit.c:5
CallTraceInit
void CallTraceInit(void)
Definition:
CallTraceInit.c:11
FBLib_debug.h
CTSTACKSIZE
#define CTSTACKSIZE
Definition:
FBLib_debug.h:7
TAP_Print
#define TAP_Print
Definition:
libFireBird.h:181
StrToISOAlloc
void StrToISOAlloc(const byte *SourceString, byte **DestString)
Definition:
StrToISOAlloc.c:5
debug
CallTraceComment.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3