Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foota
on April 1, 2017
|
parent
|
context
|
favorite
| on:
A semantic model for a substantial fragment of C
Fairly certain you can have compound statements as the result of the macro. e.g., the macro could expand to if(a) {printf("%d\n", b);} for example
Normal_gaussian
on April 1, 2017
[–]
You can. Of course you don't even need the logical connector
#define f(a,b) \ f_var1 = a; \ f_var2 = b
Equally you could use macros to make it a whole lot worse
#define f(a,b) \ f_arr[a][b] += f_arr[b][a]
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: