GBDK 2020 Docs  4.1.1
API Documentation for GBDK 2020
rledecompress.h
Go to the documentation of this file.
1 
9 #ifndef __RLEDECOMPRESS_H_INCLUDE
10 #define __RLEDECOMPRESS_H_INCLUDE
11 
12 #include <types.h>
13 #include <stdint.h>
14 
15 #define RLE_STOP 0
16 
17 #if defined(__TARGET_gb) || defined(__TARGET_ap) || defined(__TARGET_duck) || defined(__TARGET_nes)
24 uint8_t rle_init(void * data) OLDCALL;
25 
41 #elif defined(__TARGET_sms) || defined(__TARGET_gg)
42 uint8_t rle_init(void * data) Z88DK_FASTCALL;
43 uint8_t rle_decompress(void * dest, uint8_t len) Z88DK_CALLEE;
44 #else
45  #error Unrecognized port
46 #endif
47 
48 #endif
#define OLDCALL
Definition: types.h:21
#define Z88DK_CALLEE
Definition: types.h:45
#define Z88DK_FASTCALL
Definition: types.h:46
uint8_t rle_init(void *data) OLDCALL
uint8_t rle_decompress(void *dest, uint8_t len) OLDCALL
unsigned char uint8_t
Definition: stdint.h:51