c/clang: castdump

This commit is contained in:
xushiwei
2024-07-15 01:07:26 +08:00
parent cbe190fa70
commit 0b0cecc2a9
5 changed files with 55 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"unsafe"
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/c/clang"
)
const (
LLGoCFlags = "-I$(llvm-config --includedir)"
)
func main() {
c.Printf(c.Str("sizeof(clang.Cursor) = %lu\n"), unsafe.Sizeof(clang.Cursor{}))
}