1
0
mirror of https://github.com/golang/go synced 2024-11-20 00:24:43 -07:00
go/doc
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
..
articles
codewalk
devel
editors
gopher website: recreate 16px and 32px favicon 2016-08-25 15:43:32 +00:00
play
progs cmd/cgo: support niladic function-like macros 2017-08-30 18:28:58 +00:00
asm.html
cmd.html
code.html
conduct.html
contrib.html
contribute.html
debugging_with_gdb.html
docs.html
editors.html
effective_go.html
gccgo_contribute.html
gccgo_install.html
go1.1.html
go1.2.html
go1.3.html
go1.4.html
go1.5.html
go1.6.html
go1.7.html
go1.8.html
go1.9.html
go1.html
go1compat.html
go_faq.html
go_mem.html
go_spec.html
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html
ie.css
install-source.html
install.html
root.html
security.html
share.png
tos.html