Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think this qualifies as art.

char insert_string1[]={"\n\r;\n\r"}; char insert_string2[]={";For some reason, inserting these lines makes it assemble correctly\n\r"};



Oh boy when I see stuff like that in modern code, I start looking for undefined behavior occurring elsewhere in the same or dependent translation units...


Normally I'd totally agree, but looking closely, that's a _comment_. If it is a load bearing comment, we're looking at an assembler bug there.

EDIT: Looking more closely, it's less absurd than this. The comment is referring to directives on the next lines that have an impact, rather than itself.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: