1
0
mirror of https://github.com/golang/go synced 2024-11-18 12:04:57 -07:00
go/misc
Hiroshi Ioka 03876af91c cmd/cgo: support niladic function-like macros
Currently, cgo supports only macros which can be reduced to constants
or variables. The CL addresses remaining parts, macros which can be
represented as niladic functions.

The basic idea is simple:
  1. make a thin wrapper function per macros.
  2. replace macro expansions with function calls.

Fixes #10715
Fixes #18720

Change-Id: I150b4fb48e9dc4cc34466ef6417c04ac93d4bc1a
Reviewed-on: https://go-review.googlesource.com/43970
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-08-30 18:28:58 +00:00
..
android misc/android: don't let the Android exec wrapper hang indefinitely 2017-05-01 22:31:15 +00:00
arm
cgo cmd/cgo: support niladic function-like macros 2017-08-30 18:28:58 +00:00
chrome/gophertool
git
ios misc/ios,src/iostest.bash: support GOIOS_DEVICE_ID 2017-08-28 16:37:25 +00:00
linkcheck
nacl misc/nacl: add cmd/vendor/golang.org/x/arch/arm64/arm64asm testdata 2017-08-16 17:57:51 +00:00
sortac
swig
trace misc/trace: update trace-viewer 2017-08-25 15:50:29 +00:00
benchcmp
editors