summaryrefslogtreecommitdiff
path: root/gen_arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gen_arm.c')
-rw-r--r--gen_arm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gen_arm.c b/gen_arm.c
index 1534ee2..33eccaf 100644
--- a/gen_arm.c
+++ b/gen_arm.c
@@ -76,8 +76,7 @@ void check_alloc_code(code_info *code)
size_t size = CODE_ALLOC_SIZE;
uint32_t *next_code = alloc_code(&size);
if (!next_code) {
- fputs("Failed to allocate memory for generated code\n", stderr);
- exit(1);
+ fatal_error("Failed to allocate memory for generated code\n");
}
if (next_code = code->last + RESERVE_WORDS) {
//new chunk is contiguous with the current one