Skip to content

Commit

Permalink
compiler: Add abort() to C lib funcs known by default
Browse files Browse the repository at this point in the history
DCO-1.1-Signed-off-by: Ellie <[email protected]>
  • Loading branch information
ell1e committed Jan 3, 2025
1 parent 39ea386 commit 029da9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/compiler/moose64/c_importer.h64
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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);",
Expand Down

0 comments on commit 029da9e

Please sign in to comment.