You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a patch to do this, but it's somewhat fragile for simplicity's sake. For
instance, if you use a #defined constant, say C.FOO, and FOO looks like
#define FOO some_func_call()
or something similar, it will translate into invalid Go code. I personally think this
is OK, because it doesn't make much sense to use defines in this way with the cgo
FFI. Additionally, it's quite a pain to try to parse C further to determine whether
it will, in fact, generate valid code.
Other than that, seems to work. Patch attached so I don't lose code; contains fixes
for two other cgo issues though, just waiting for Russ to get back so we can get
things committed cleanly.
The text was updated successfully, but these errors were encountered: