Skip to content

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Feb 6, 2019

Global variables (like functions) must be declared in the import "C"
preamble and can then be used from Go.

Global variables (like functions) must be declared in the import "C"
preamble and can then be used from Go.
@aykevl aykevl mentioned this pull request Feb 7, 2019
@deadprogram
Copy link
Member

Amazing how much you need to implement that one feature.

Anyhow, this seems like it should be able to be merged now, since it does not impact any non-CGo functionality from what I can tell.

What do you think?

@aykevl
Copy link
Member Author

aykevl commented Feb 8, 2019

Amazing how much you need to implement that one feature.

Yes it's a pretty big change, because initial assumptions about how to structure code turned out to be somewhat wrong. There are even more changes in #174 for the same reason.

@deadprogram
Copy link
Member

OK now merging.

@deadprogram deadprogram merged commit 01f6aff into dev Feb 8, 2019
@deadprogram deadprogram deleted the cgo-globals branch February 8, 2019 12:04
deadprogram pushed a commit that referenced this pull request Feb 19, 2019
Global variables (like functions) must be declared in the import "C" preamble and can then be used from Go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants