Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
doug11235
· 17y ago · 0 comments
And another feature I like about ({ }) macros (anyone know the proper name here?) is you can return values. Clearly more useful in an example a bit more complex but...
#define ADD_ONE(a) ({ a + 1; })
x = ADD_ONE(2);
Comments
[–]
tedunangst
17y ago
They are called statement expressions.