mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-05 20:29:07 +00:00
cgo: add dummy implementation of __builtin_va_list
Every ABI has a slightly different implementation. Ideally, we would use something like Clang TargetInfo or extract it by compiling some C code and checking the IR, but this is a useful workaround for now.
This commit is contained in:
committed by
Ron Evans
parent
b815d3f760
commit
d396abb690
@@ -60,6 +60,7 @@ var cgoAliases = map[string]string{
|
||||
"C.uint32_t": "uint32",
|
||||
"C.uint64_t": "uint64",
|
||||
"C.uintptr_t": "uintptr",
|
||||
"C.__builtin_va_list": "uintptr", // dummy value until fully implemented
|
||||
}
|
||||
|
||||
// cgoTypes lists some C types with ambiguous sizes that must be retrieved
|
||||
|
||||
Reference in New Issue
Block a user