mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
all: add bare-bones Cgo support
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package loader
|
||||
|
||||
/*
|
||||
#include <clang-c/Index.h> // if this fails, install libclang-7-dev
|
||||
|
||||
// The gateway function
|
||||
int tinygo_clang_visitor_cgo(CXCursor c, CXCursor parent, CXClientData client_data) {
|
||||
int tinygo_clang_visitor(CXCursor c, CXCursor parent, CXClientData client_data);
|
||||
return tinygo_clang_visitor(c, parent, client_data);
|
||||
}
|
||||
*/
|
||||
import "C"
|
||||
Reference in New Issue
Block a user