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

Why do you need to start with while (0); ?



  #define end_element()    \
    while (0);     \
    do {      \
   if (xmlTextWriterEndElement (xo) == -1) { \
     xml_error ("xmlTextWriterEndElement"); \
   }      \
    } while (0)


Talking about the first while (0);




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: