FireBirdLib - Topfield TMS PVR TAP Programming Library
TAP_MemAlloc_Chk.c
Go to the documentation of this file.
1
#define FB_DEBUG_CHK
2
#define FB_LOG_ENTRY_LIB_PRINTF
3
#include "
libFireBird.h
"
4
5
void
*
TAP_MemAlloc_Chk
(
char
*Comment, dword size)
6
{
7
TRACEENTER
();
8
9
void
*ret;
10
11
ret = TAP_MemAlloc(size);
12
13
if
(!ret && Comment)
LogEntryFBLibPrintf
(TRUE,
"TAP_MemAlloc_Chk Warning: TAP_MemAlloc(%lu) returned NULL pointer @ %s"
, size, Comment);
14
15
TRACEEXIT
();
16
return
ret;
17
}
LogEntryFBLibPrintf
void LogEntryFBLibPrintf(bool Console, char *format,...)
Definition:
LogEntryFBLibPrintf.c:13
TAP_MemAlloc_Chk
void * TAP_MemAlloc_Chk(char *Comment, dword size)
Definition:
TAP_MemAlloc_Chk.c:5
libFireBird.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
debug
TAP_MemAlloc_Chk.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3