It seems I wasn't able to make the code look like indented (Hacker News software automatically changed it). In the indented code while(1) should be on first line, "{" on the second line, "if(1)" on the third line, etc.. I'm sorry for that.
while(1) {
if(1) {
do(x);
}
}<i>doh!</i>