4 ms·
Yes, it is ran through C preprocessor. You can define for CFLAGS, CPPFLAGS or LDFLAGS in the form of special comment: // #cgo CFLAGS: -DYOUR_DEFINE //
by vetinari 10y ago
Yes, it is ran through C preprocessor. You can define for CFLAGS, CPPFLAGS or LDFLAGS in the form of special comment:
// #cgo CFLAGS: -DYOUR_DEFINE
// #cgo LDFLAGS: -lyourlib
// #include <header.h>
import "C"