qboolean g_nomkdir = false;
-
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size ){
void *p;
return p;
}
-#endif // !SAFE_MALLOC
void *SafeMalloc( size_t n, char *desc ){
void *p;
// the dec offsetof macro doesnt work very well...
#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier )
-#define SAFE_MALLOC
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size );
void *safe_malloc_info( size_t size, char* info );
-#else
-#define safe_malloc( a ) malloc( a )
-#endif /* SAFE_MALLOC */
// set these before calling CheckParm
extern int myargc;
// qboolean verbose = false;
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size ){
void *p;
memset( p, 0, size );
return p;
}
-#endif
// set these before calling CheckParm
int myargc;
// the dec offsetof macro doesnt work very well...
#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier )
-#define SAFE_MALLOC
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size );
void *safe_malloc_info( size_t size, char* info );
-#else
-#define safe_malloc( a ) malloc( a )
-#endif /* SAFE_MALLOC */
// set these before calling CheckParm
extern int myargc;
#define BASEDIRNAME "quake" // assumed to have a 2 or 3 following
#define PATHSEPERATOR '/'
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size ){
void *p;
return p;
}
-#endif // !SAFE_MALLOC
// set these before calling CheckParm
int myargc;
// the dec offsetof macro doesnt work very well...
#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier )
-#define SAFE_MALLOC
-#ifdef SAFE_MALLOC
void *safe_malloc( size_t size );
void *safe_malloc_info( size_t size, char* info );
-#else
-#define safe_malloc( a ) malloc( a )
-#endif /* SAFE_MALLOC */
// set these before calling CheckParm
extern int myargc;