cgo: add support for symbols

This commit is contained in:
Ayke van Laethem
2019-12-30 21:17:15 +01:00
committed by Ron Evans
parent d37bbadb54
commit d735df6e16
5 changed files with 66 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
package main
/*
#define foo 3
#define bar foo
*/
import "C"
const (
Foo = C.foo
Bar = C.bar
)