mirror of
https://github.com/golang/go
synced 2024-11-15 02:30:31 -07:00
03876af91c
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> |
||
---|---|---|
.. | ||
cgo1.go | ||
cgo2.go | ||
cgo3.go | ||
cgo4.go | ||
defer2.go | ||
defer.go | ||
eff_bytesize.go | ||
eff_qr.go | ||
eff_sequence.go | ||
eff_unused1.go | ||
eff_unused2.go | ||
error2.go | ||
error3.go | ||
error4.go | ||
error.go | ||
go1.go | ||
gobs1.go | ||
gobs2.go | ||
image_draw.go | ||
image_package1.go | ||
image_package2.go | ||
image_package3.go | ||
image_package4.go | ||
image_package5.go | ||
image_package6.go | ||
interface2.go | ||
interface.go | ||
json1.go | ||
json2.go | ||
json3.go | ||
json4.go | ||
json5.go | ||
run.go | ||
slices.go | ||
timeout1.go | ||
timeout2.go |