manual c function interop

This commit is contained in:
2026-06-11 22:46:12 +02:00
parent 2a79010a57
commit a5ceb727c1
20 changed files with 725 additions and 74 deletions
+18 -1
View File
@@ -7,6 +7,21 @@ import "core:mem"
INVALID_ID :: -1
Calling_Convention :: enum {
Brolang,
C,
}
Implementation :: enum {
Definition,
Declaration,
}
Linkage :: enum {
Internal,
External,
}
Expr_Kind :: enum {
Invalid,
Integer,
@@ -56,7 +71,9 @@ Stmt :: struct {
Function :: struct {
name: symbol.Id,
link_name: string,
c_abi: bool,
calling_convention: Calling_Convention,
implementation: Implementation,
linkage: Linkage,
is_main: bool,
params: []int,
result: types.Type,