From 029da9ed6d1eb6bcae4c386244496a9fc75197ab Mon Sep 17 00:00:00 2001 From: ell1e Date: Fri, 3 Jan 2025 08:39:06 +0100 Subject: [PATCH] compiler: Add abort() to C lib funcs known by default DCO-1.1-Signed-off-by: Ellie --- src/compiler/moose64/c_importer.h64 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/compiler/moose64/c_importer.h64 b/src/compiler/moose64/c_importer.h64 index dcbd799..d5bdee1 100644 --- a/src/compiler/moose64/c_importer.h64 +++ b/src/compiler/moose64/c_importer.h64 @@ -1,5 +1,5 @@ ## @module compiler.moose64.c_importer -# Copyright (c) 2024, ellie/@ell1e & Horse64 authors (see AUTHORS.md). +# Copyright (c) 2024-2025, ellie/@ell1e & Horse64 authors (see AUTHORS.md). # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: @@ -71,6 +71,11 @@ func CImportInfo._process_c_include(project, ipath) { _override_func_signature= "(<-i32)->empty" ) + new_items["abort"] = new c_symbol.CFuncSymbol( + "void abort(void);", + _override_func_signature= + "()->empty" + ) } elseif ipath == "string.h" { new_items["memcpy"] = new c_symbol.CFuncSymbol( "void *memcpy(void *dest, const void *src, size_t n);",