]> sourceware.org Git - systemtap.git/commit
PR11207: initial implementation of macros (definitions visible in same file).
authorSerguei Makarov <smakarov@redhat.com>
Thu, 26 Jul 2012 15:02:42 +0000 (11:02 -0400)
committerSerguei Makarov <smakarov@redhat.com>
Thu, 26 Jul 2012 15:25:40 +0000 (11:25 -0400)
commit534aad8b89d52c2a83eac2087d8d2dcfa0eba92a
treebd253bfaa3ed5f787840955e2120f89a587b025b
parent10eb3c4103ef413f8397b025b3f7eb828c69cf32
PR11207: initial implementation of macros (definitions visible in same file).

This patch augments systemtap's preprocessor with a simple macro facility,
as follows:

@define add(a,b) %( ((@a)+(@b)) %)
x = add(2,2)

Further details are available in the comments on the preprocessor code,
or in the proposal posted earlier on the mailing list.
parse.cxx
parse.h
This page took 0.029265 seconds and 5 git commands to generate.