<div dir="ltr">Hi all, <div><br></div><div>I want to use rewrite.InsertTextAfter (...) to inject certain function calls at the end of statements. However, the presence of macros of the form: </div><div>#define macro do { \</div><div>                       ..      \</div><div>                           }   \</div><div>                       while(0) \</div><div><br></div><div>causes problems because I can't use the function call insertion as: ", addedFunction()". </div><div><br></div><div>Is there a way I can identify that a source location is end of such a macro that ends with while(0)? </div><div><br></div><div>Thanks!<br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<div>Himanshu</div></div></div>
</div></div>