manual c function interop
This commit is contained in:
+18
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user