NeKernel dev
Loading...
Searching...
No Matches
Macros.h File Reference

Go to the source code of this file.

Macros

#define ATTRIBUTE(X)
#define IMPORT_CXX   extern "C++"
#define IMPORT_C   extern "C"
#define DEPRECATED   ATTRIBUTE(deprecated)
#define EXIT_SUCCESS   (0)
#define EXIT_FAILURE   (1)
#define FILE_MAX_LEN   (256)
#define BOOL   bool
#define true   (1)
#define false   (0)
#define YES   true
#define NO   false
#define MUST_PASS(X)
#define ARRAY_SIZE(X)
#define KIB(X)
#define kib_cast(X)
#define MIB(X)
#define mib_cast(X)
#define GIB(X)
#define gib_cast(X)
#define TIB(X)
#define tib_cast(X)
#define LIBSYS_UNUSED(X)

Typedefs

typedef __UINT32_TYPE__ UInt32
typedef __UINT16_TYPE__ UInt16
typedef __UINT8_TYPE__ UInt8
typedef __INT64_TYPE__ SInt64
typedef __INT32_TYPE__ SInt32
typedef __INT16_TYPE__ SInt16
typedef __INT8_TYPE__ SInt8
typedef void * VoidPtr

Functions

IMPORT_C void _rtl_assert (Bool expr, const Char *origin)

Macro Definition Documentation

◆ ARRAY_SIZE

#define ARRAY_SIZE ( X)
Value:
(((sizeof(X) / sizeof(*(X))) / (static_cast<SizeT>(!(sizeof(X) % sizeof(*(X)))))))

◆ ATTRIBUTE

#define ATTRIBUTE ( X)
Value:
__attribute__((X))

◆ BOOL

#define BOOL   bool

◆ DEPRECATED

#define DEPRECATED   ATTRIBUTE(deprecated)

◆ EXIT_FAILURE

#define EXIT_FAILURE   (1)

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   (0)

◆ false

#define false   (0)

◆ FILE_MAX_LEN

#define FILE_MAX_LEN   (256)

◆ GIB

#define GIB ( X)
Value:
(UInt64)((UInt64) MIB(X) / 1024)
#define MIB(X)

◆ gib_cast

#define gib_cast ( X)
Value:
(UInt64)((UInt64) mib_cast(X) * 1024)
#define mib_cast(X)

◆ IMPORT_C

#define IMPORT_C   extern "C"

◆ IMPORT_CXX

#define IMPORT_CXX   extern "C++"

◆ KIB

#define KIB ( X)
Value:
(UInt64)((X) / 1024)

◆ kib_cast

#define kib_cast ( X)
Value:
(UInt64)((X) *1024)

◆ LIBSYS_UNUSED

#define LIBSYS_UNUSED ( X)
Value:
((void) X)

◆ MIB

#define MIB ( X)
Value:
(UInt64)((UInt64) KIB(X) / 1024)
#define KIB(X)

◆ mib_cast

#define mib_cast ( X)
Value:
(UInt64)((UInt64) kib_cast(X) * 1024)
#define kib_cast(X)

◆ MUST_PASS

#define MUST_PASS ( X)
Value:
_rtl_assert(X, __FILE__)
IMPORT_C Void _rtl_assert(Bool expr, const Char *origin)
Definition SystemCalls.cc:87

◆ NO

#define NO   false

◆ TIB

#define TIB ( X)
Value:
(UInt64)((UInt64) GIB(X) / 1024)
#define GIB(X)

◆ tib_cast

#define tib_cast ( X)
Value:
((UInt64) gib_cast(X) * 1024)
#define gib_cast(X)

◆ true

#define true   (1)

◆ YES

#define YES   true

Typedef Documentation

◆ SInt16

typedef __INT16_TYPE__ SInt16

◆ SInt32

typedef __INT32_TYPE__ SInt32

◆ SInt64

typedef __INT64_TYPE__ SInt64

◆ SInt8

typedef __INT8_TYPE__ SInt8

◆ UInt16

typedef __UINT16_TYPE__ UInt16

◆ UInt32

typedef __UINT32_TYPE__ UInt32

◆ UInt8

typedef __UINT8_TYPE__ UInt8

◆ VoidPtr

typedef void* VoidPtr

Function Documentation

◆ _rtl_assert()

IMPORT_C void _rtl_assert ( Bool expr,
const Char * origin )