PocketEmpires/Global_Inc.h

53 lines
1.5 KiB
C

#ifndef GLOBAL_INC_H__
#define GLOBAL_INC_H__
/* *************************************
* Includes
* *************************************/
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <avr/pgmspace.h>
#include "settings.c"
#ifdef __cplusplus
#include <Gamebuino.h>
#include <Print.h>
#endif /* cplusplus. */
/* *************************************
* Defines
* *************************************/
#define DEBUG_VAR(var, suff, x, y) if (1) \
{ \
char buffer##suff[16]; \
Systemitoa(buffer##suff, sizeof(buffer##suff), var); \
GfxPrintText(buffer##suff, x, y); \
}
/* *************************************
* Structs and enums
* *************************************/
/* *************************************
* Global variables
* *************************************/
#ifdef __cplusplus
extern Gamebuino gb;
#endif /* cplusplus. */
extern const uint8_t font3x5[];
extern const uint8_t font3x3[];
/* *************************************
* Global prototypes
* *************************************/
#endif /* GLOBAL_INC_H__. */