[go: up one dir, main page]

File: expect_ident.cppo

package info (click to toggle)
cppo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 588 kB
  • sloc: ml: 2,133; makefile: 54; sh: 11
file content (6 lines) | stat: -rw-r--r-- 190 bytes parent folder | download
1
2
3
4
5
6
let id x = x
#define ID(X) X
#define APPLY(F : [.], X) F(X)
APPLY(ID(id), 42)
  (* invalid because APPLY expects a macro as an argument:
     ID would be a valid argument; ID(id) is not. *)