Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
greenyoda
9y ago
0 comments
Share
Which is why anyone who has experience programming in C would instead write:
#define add(a, b) ((a) + (b))
undefined | Better HN
0 comments
default
newest
oldest
0xmohit
9y ago
One may also do:
add(x, foo(x))
Which is why anyone who has experience programming in C would use (an inline) function instead.
j
/
k
navigate · click thread line to collapse