mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-21 15:00:06 +00:00
removed CERROR
This commit is contained in:
parent
de8cd481c3
commit
fe136f84b5
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user