GrafX2 2.9.3227
The ultimate 256-color painting program
gfx2mem.h File Reference
#include <sys/types.h>
+ Include dependency graph for gfx2mem.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define GFX2_malloc(size)   GFX2_malloc_and_log((size), __FILE__, __LINE__)
 malloc() memory and log in case of error More...
 

Functions

void * GFX2_malloc_and_log (size_t size, const char *file, unsigned line)
 malloc() memory and log in case of error More...
 
int GFX2_is_mem_filled_with (const void *p, unsigned char b, size_t len)
 checks if a memory zone is filled with the same byte value More...
 

Macro Definition Documentation

◆ GFX2_malloc

#define GFX2_malloc (   size)    GFX2_malloc_and_log((size), __FILE__, __LINE__)

malloc() memory and log in case of error

Function Documentation

◆ GFX2_malloc_and_log()

void * GFX2_malloc_and_log ( size_t  size,
const char *  file,
unsigned  line 
)

malloc() memory and log in case of error

References GFX2_ERROR, GFX2_Log(), and NULL.

◆ GFX2_is_mem_filled_with()

int GFX2_is_mem_filled_with ( const void *  p,
unsigned char  b,
size_t  len 
)

checks if a memory zone is filled with the same byte value

Referenced by Load_SCR(), and Test_Read_Write_bytes().