# commons.h

## Data Structures
struct | GDATAPTR
## Defines
#define | res_width 800
#define | res_height 600
#define | _I(x) (int*)x
#define | _B(x) (double*)x
#define | _C(x) (char*)x
#define | _D(x) (double*)x
#define | __I(x) *(int*)x
#define | __B(x) *(_Bool*)x
#define | __C(x) *(char*)x
#define | __D(x) *(double*)x
## Typedefs
typedef char * | String
## Functions
GDATAPTR | get_game_data (void)
| Grabs the main GDATA structure.
void | cleanup (GDATAPTR game)

## Detailed Description

defines of all needed macros for the program, this module is global and is included in all other modules

## Define Documentation

#define __B | ( | x |  | ) | *(_Bool*)x

Definition at line 66 of file commons.h.

#define __C | ( | x |  | ) | *(char*)x

Definition at line 67 of file commons.h.

#define __D | ( | x |  | ) | *(double*)x

Definition at line 68 of file commons.h.

#define __I | ( | x |  | ) | *(int*)x

Definition at line 65 of file commons.h.

#define _B | ( | x |  | ) | (double*)x

Definition at line 62 of file commons.h.

#define _C | ( | x |  | ) | (char*)x

Definition at line 63 of file commons.h.

#define _D | ( | x |  | ) | (double*)x

Definition at line 64 of file commons.h.

#define _I | ( | x |  | ) | (int*)x

Definition at line 61 of file commons.h.

#define res_height 600

Definition at line 59 of file commons.h.

#define res_width 800

Definition at line 58 of file commons.h.

## Typedef Documentation

typedef char* String

Definition at line 54 of file commons.h.

## Function Documentation

void cleanup | ( | GDATAPTR | game | ) |

Definition at line 464 of file main.c.

GDATAPTR get_game_data | ( | void |  | ) |

Grabs the main GDATA structure.

Returns a pointer to 'data', a pointer to a structure of type GDATA

Returns:
  returns GDATAPTR

Definition at line 431 of file main.c.