cgo: support function-like macros

This is needed for code like this:

    #define __WASI_ERRNO_INVAL (UINT16_C(28))
    #define EINVAL __WASI_ERRNO_INVAL
This commit is contained in:
Ayke van Laethem
2024-11-06 13:46:49 +01:00
committed by Ron Evans
parent c4867c8743
commit e12da15f7d
8 changed files with 214 additions and 46 deletions
+3
View File
@@ -49,3 +49,6 @@ const C.foo = 3
const C.bar = C.foo
const C.unreferenced = 4
const C.referenced = C.unreferenced
const C.fnlike_val = 5
const C.square_val = (20 * 20)
const C.add_val = (3 + 5)