• Hiroshi Ioka's avatar
    cmd/cgo: support niladic function-like macros · 03876af9
    Hiroshi Ioka authored
    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: 's avatarIan Lance Taylor <iant@golang.org>
    03876af9
Name
Last commit
Last update
..
cgo1.go Loading commit data...
cgo2.go Loading commit data...
cgo3.go Loading commit data...
cgo4.go Loading commit data...
defer.go Loading commit data...
defer2.go Loading commit data...
eff_bytesize.go Loading commit data...
eff_qr.go Loading commit data...
eff_sequence.go Loading commit data...
eff_unused1.go Loading commit data...
eff_unused2.go Loading commit data...
error.go Loading commit data...
error2.go Loading commit data...
error3.go Loading commit data...
error4.go Loading commit data...
go1.go Loading commit data...
gobs1.go Loading commit data...
gobs2.go Loading commit data...
image_draw.go Loading commit data...
image_package1.go Loading commit data...
image_package2.go Loading commit data...
image_package3.go Loading commit data...
image_package4.go Loading commit data...
image_package5.go Loading commit data...
image_package6.go Loading commit data...
interface.go Loading commit data...
interface2.go Loading commit data...
json1.go Loading commit data...
json2.go Loading commit data...
json3.go Loading commit data...
json4.go Loading commit data...
json5.go Loading commit data...
run.go Loading commit data...
slices.go Loading commit data...
timeout1.go Loading commit data...
timeout2.go Loading commit data...