#ifndef ka_mem_h
#define ka_mem_h
//#include "ka_log.h"

#include <stdlib.h>
#include <stdarg.h>
#define ka_mem_alloc(x) malloc(x)
#define ka_mem_calloc(x) calloc(1,x)
#define ka_mem_free(x) free(x)
//#define ka_mem_free(x) {ka_log(ka_log_error, "Free %s, line %d", __FILE__, __LINE__);free(x);}
char* ka_mem_allocstring(const char*);
#ifdef __CC_NORCROFT
#pragma -v1 // hint to the compiler to check f/s/printf format
#endif
char* ka_mem_allocprint(const char*, ...);
#ifdef __CC_NORCROFT
#pragma -v0 // return to default
#endif
char* ka_mem_allocvprint(const char*, va_list);

int stricmp(const char* pa, const char* pb);

#endif
