removed CERROR

This commit is contained in:
CPunch 2023-08-30 20:14:03 -05:00 committed by cpunch
parent de8cd481c3
commit fe136f84b5
4 changed files with 3 additions and 5 deletions

View File

@ -56,7 +56,7 @@ void *cosmoM_reallocate(CState *state, void *buf, size_t oldSize, size_t newSize
#endif #endif
if (newBuf == NULL) { if (newBuf == NULL) {
CERROR("failed to allocate memory!"); printf("[ERROR] failed to allocate memory!");
exit(1); exit(1);
} }

View File

@ -64,6 +64,4 @@ typedef int (*cosmo_Writer)(CState *state, const void *data, size_t size, const
#define UNNAMEDCHUNK "_main" #define UNNAMEDCHUNK "_main"
#define COSMOASSERT(x) assert(x) #define COSMOASSERT(x) assert(x)
#define CERROR(err) printf("%s : %s\n", "[ERROR]", err)
#endif #endif

View File

@ -32,7 +32,7 @@ CState *cosmoV_newState()
CState *state = malloc(sizeof(CState)); CState *state = malloc(sizeof(CState));
if (state == NULL) { if (state == NULL) {
CERROR("failed to allocate memory!"); printf("[ERROR] failed to allocate memory!");
exit(1); exit(1);
} }

View File

@ -696,7 +696,7 @@ static inline uint16_t READUINT(CCallFrame *frame)
# define SWITCH switch (READBYTE(frame)) # define SWITCH switch (READBYTE(frame))
# define DEFAULT \ # define DEFAULT \
default: \ default: \
CERROR("unknown opcode!"); \ printf("[ERROR] unknown opcode!"); \
exit(0) exit(0)
#endif #endif