BASTYPES
More...
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
#define | DEMOS_LOAD_FROMHD |
|
#define | DEMOS_DEBUG |
|
#define | DEMOS_ASSERT |
|
#define | DEMOS_UNITTEST |
|
#define | IGNORE_PARAM(NAME) NAME = NAME; |
|
#define | STATIC_ASSERT(COND) typedef char static_assertion##__LINE__[(COND)?1:-1] |
|
#define | DEMOS_INVERT_DRIVE 0 |
|
#define | _CRT_SECURE_NO_WARNINGS |
|
#define | ENUM(NAME) typedef enum NAME##_ NAME; enum NAME##_ |
|
#define | PREDECLARE_STRUCT(NAME) typedef struct NAME##_ NAME |
|
#define | STRUCT(NAME) PREDECLARE_STRUCT(NAME); struct NAME##_ |
|
#define | UNION(NAME) typedef union NAME##_ NAME; union NAME##_ |
|
#define | DEFAULT_CONSTRUCT(INSTANCE_PTR) STDmset(INSTANCE_PTR,0,sizeof(*INSTANCE_PTR)); |
|
#define | false 0 |
|
#define | true 1 |
|
#define | ARRAYSIZE(TAB) (sizeof(TAB) / sizeof(*TAB)) |
|
#define | NULL ((void*)0) |
|
#define | U16_SIZEOF_SHIFT 1 |
|
#define | U32_SIZEOF_SHIFT 2 |
|
#define | PCENDIANSWAP16(V) STDswap16(V) |
|
#define | PCENDIANSWAP32(V) STDswap32(V) |
|
#define | PCSTUB {} |
|
#define | PCSTUBRET { return 0; } |
|
#define | ASMIMPORT |
|
#define | MEM_ALLOC(ALLOCATOR, SIZE) (ALLOCATOR)->alloc((ALLOCATOR)->allocator,(SIZE)) |
|
#define | MEM_FREE(ALLOCATOR, ADR) (ALLOCATOR)->free((ALLOCATOR)->allocator,(ADR)) |
|
#define | MEM_ALLOC_STRUCT(ALLOCATOR, NAME) (NAME*) (ALLOCATOR)->alloc((ALLOCATOR)->allocator, sizeof(NAME)) |
|
#define | ASSERT(A) assert(A) |
|
|
typedef signed char | s8 |
|
typedef unsigned char | u8 |
|
typedef short | s16 |
|
typedef unsigned short | u16 |
|
typedef long | s32 |
|
typedef unsigned long | u32 |
|
typedef u8 | bool |
|
typedef void *(* | MEMallocFunc )(void *_allocator, u32 _size) |
|
typedef void(* | MEMfreeFunc )(void *_allocator, void *_adr) |
|