FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
error_ptrchk.c
Go to the documentation of this file.
1
/* null pointer checking function */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
void
*
fb_NullPtrChk
(
void
*ptr,
int
linenum,
const
char
*fname )
7
{
8
if
( ptr ==
NULL
)
9
return
(
void
*)
fb_ErrorThrowEx
(
FB_RTERROR_NULLPTR
, linenum, fname,
NULL
,
NULL
);
10
else
11
return
NULL
;
12
}
rtlib
error_ptrchk.c
Generated on Thu Jan 23 2014 19:40:10 for FreeBASIC by
1.8.4