global.h File Reference

#include <bits/wordsize.h>
#include "MercuryString.h"
#include <stdint.h>

Go to the source code of this file.

Defines

#define SAFE_DELETE(p)   { if(p) { delete (p); (p)=0; } }
#define SAFE_DELETE_ARRAY(p)   { if(p) { delete[] (p); (p)=0; } }
#define SAFE_FREE(p)   { if(p) { free(p); (p)=0; } }
#define M_ALIGN(n)
#define MStringArray   vector<MString>
#define HGEXPORT
#define EXPORTPREFIX
#define EXPORTSUFFIX
#define RUN_STATEMENT_AT_BOOT(name, statement)
#define MIN(x, y)   ((x<y)?(x):(y))
#define MAX(x, y)   ((x<y)?(x):(y))
#define TO_ENDIAN(x)
#define TO_ENDIAN2(x)

Typedefs

typedef unsigned MVPtr


Define Documentation

#define EXPORTPREFIX

Definition at line 79 of file global.h.

#define EXPORTSUFFIX

Definition at line 80 of file global.h.

#define HGEXPORT

Definition at line 78 of file global.h.

#define M_ALIGN (  ) 

Definition at line 33 of file global.h.

#define MAX ( x,
 )     ((x<y)?(x):(y))

Definition at line 93 of file global.h.

#define MIN ( x,
 )     ((x<y)?(x):(y))

Definition at line 92 of file global.h.

#define MStringArray   vector<MString>

Definition at line 39 of file global.h.

#define RUN_STATEMENT_AT_BOOT ( name,
statement   ) 

Value:

class PREBOOT_##name \
    { \
    public: \
        PREBOOT_##name() { statement } \
    } PREBOOT_INSTANCE_##name;

Definition at line 85 of file global.h.

#define SAFE_DELETE (  )     { if(p) { delete (p); (p)=0; } }

Definition at line 16 of file global.h.

#define SAFE_DELETE_ARRAY (  )     { if(p) { delete[] (p); (p)=0; } }

Definition at line 17 of file global.h.

#define SAFE_FREE (  )     { if(p) { free(p); (p)=0; } }

Definition at line 18 of file global.h.

#define TO_ENDIAN (  ) 

Definition at line 101 of file global.h.

#define TO_ENDIAN2 (  ) 

Definition at line 102 of file global.h.


Typedef Documentation

typedef unsigned MVPtr

Definition at line 62 of file global.h.


Hosted by SourceForge.net Logo