xushiwei
xushiwei
> There's still a problem:`libtorch` uses exceptions as the main error handling mechanism, this causes two consequences: > > 1. We have to find a way to pass C++ exception...
https://godoc.org/plugin
All Go+ plugin packages will be installed in: ```bash ~/.goplus/lib/. ```
Will do this later. Now libc is still being translated.
And for now C++ is not supported. So, https://github.com/opencv/opencv will not be supported.
Python and lua are both considered in high priority.
Currently I only test it on macOS. You can try add `GNUInlineAttr` to `clang/ast` (https://github.com/goplus/c2go/blob/main/clang/ast/ast.go#L67), and skip it when compileFunc (https://github.com/goplus/c2go/blob/main/cl/compile.go#L175).
If it can work, welcome to create a pr.
GNUInlineAttr is supported.
I make `testdata/atomic` passed `c2go -test`. See https://github.com/goplus/c2go/blob/main/testdata/atomic/libc_windows.go You can try same way in other test cases.