2013/4/22 Marco Lattuada <ml.lattuada@xxxxxxxxx>: > Hi, > > I am trying to write a gcc plugin to manage c code included in braces and > annotated with pragmas, like openmp pragmas. > Something like this > #pragma my_pragma > { > /** Code */ > ... > } > > Is there any way to trigger a function/identify the end of the block annotated > by the pragma (i.e., the closing brace)? According to C99 6.10.6 Pragma directive, it seems there is no such end-annotation for pragma. So I would suggest defining your own '#pragma end_my_pragma'. Best regards, jasonwucj