diff --git a/src/cmem.c b/src/cmem.c index 20d8e41..a931ba9 100644 --- a/src/cmem.c +++ b/src/cmem.c @@ -56,7 +56,7 @@ void *cosmoM_reallocate(CState *state, void *buf, size_t oldSize, size_t newSize #endif if (newBuf == NULL) { - CERROR("failed to allocate memory!"); + printf("[ERROR] failed to allocate memory!"); exit(1); } diff --git a/src/cosmo.h b/src/cosmo.h index b482c2d..0aca5e1 100644 --- a/src/cosmo.h +++ b/src/cosmo.h @@ -64,6 +64,4 @@ typedef int (*cosmo_Writer)(CState *state, const void *data, size_t size, const #define UNNAMEDCHUNK "_main" #define COSMOASSERT(x) assert(x) -#define CERROR(err) printf("%s : %s\n", "[ERROR]", err) - #endif diff --git a/src/cstate.c b/src/cstate.c index 3ed618f..f416715 100644 --- a/src/cstate.c +++ b/src/cstate.c @@ -32,7 +32,7 @@ CState *cosmoV_newState() CState *state = malloc(sizeof(CState)); if (state == NULL) { - CERROR("failed to allocate memory!"); + printf("[ERROR] failed to allocate memory!"); exit(1); } diff --git a/src/cvm.c b/src/cvm.c index 89d085e..5e98a19 100644 --- a/src/cvm.c +++ b/src/cvm.c @@ -696,7 +696,7 @@ static inline uint16_t READUINT(CCallFrame *frame) # define SWITCH switch (READBYTE(frame)) # define DEFAULT \ default: \ - CERROR("unknown opcode!"); \ + printf("[ERROR] unknown opcode!"); \ exit(0) #endif