Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
common.h File Reference
#include "version.h"
#include "include_asm.h"
Include dependency graph for common.h:

Go to the source code of this file.

Macros

#define NULL   ((void *)0)
 
#define FLEXIBLE   0
 The length of an array that ends a struct and runs as far as each object of it needs: s32 seps[FLEXIBLE].
 
#define INTERRUPT_SHARED
 A variable that an interrupt's callback writes while the game waits for it in a loop: the original reads it again in each pass, as GCC 2.8.1 compiles the loop, where GCC 12 reads it once unless it is volatile (make TOOLCHAIN=gcc)
 

Typedefs

typedef signed char s8
 
typedef unsigned char u8
 
typedef signed short s16
 
typedef unsigned short u16
 
typedef signed int s32
 
typedef unsigned int u32
 
typedef signed long long s64
 
typedef unsigned long long u64
 

Macro Definition Documentation

◆ NULL

#define NULL   ((void *)0)

Definition at line 17 of file common.h.

◆ FLEXIBLE

#define FLEXIBLE   0

The length of an array that ends a struct and runs as far as each object of it needs: s32 seps[FLEXIBLE].

GCC 2.8 has no flexible array members, [], but takes [0], and an initializer for it; a modern GCC drops the elements a [0] array is initialized with.

Definition at line 29 of file common.h.

◆ INTERRUPT_SHARED

#define INTERRUPT_SHARED

A variable that an interrupt's callback writes while the game waits for it in a loop: the original reads it again in each pass, as GCC 2.8.1 compiles the loop, where GCC 12 reads it once unless it is volatile (make TOOLCHAIN=gcc)

Definition at line 41 of file common.h.

Typedef Documentation

◆ s8

typedef signed char s8

Definition at line 7 of file common.h.

◆ u8

typedef unsigned char u8

Definition at line 8 of file common.h.

◆ s16

typedef signed short s16

Definition at line 9 of file common.h.

◆ u16

typedef unsigned short u16

Definition at line 10 of file common.h.

◆ s32

typedef signed int s32

Definition at line 11 of file common.h.

◆ u32

typedef unsigned int u32

Definition at line 12 of file common.h.

◆ s64

typedef signed long long s64

Definition at line 13 of file common.h.

◆ u64

typedef unsigned long long u64

Definition at line 14 of file common.h.