del myoffsetof macro

This commit is contained in:
Garux 2020-01-24 02:47:33 +03:00
parent be007466f9
commit 9cb2ab691e
4 changed files with 0 additions and 11 deletions

View File

@ -42,9 +42,6 @@ typedef enum {false, true} qboolean;
typedef unsigned char byte;
#endif
// the dec offsetof macro doesnt work very well...
#define myoffsetof(type,identifier) ((size_t)&((type *)0)->identifier)
// set these before calling CheckParm
extern int myargc;

View File

@ -65,9 +65,6 @@ typedef unsigned char byte;
#define SYS_ERR 3 // error
*/
// 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 );

View File

@ -70,8 +70,6 @@
#define SYS_WRN 2 // warnings
#define SYS_ERR 3 // error
*/
// the dec offsetof macro doesnt work very well...
#define myoffsetof( type,identifier ) ( (size_t)& ( (type *)0 )->identifier )
#define SAFE_MALLOC
#ifdef SAFE_MALLOC

View File

@ -60,9 +60,6 @@
#endif
#define MEM_BLOCKSIZE 4096
// 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 );