On Fri, Mar 5, 2010 at 8:09 AM, Christoph Spiel <csp...@freenet.de> wrote:
> Steven -
>
> On Thu, Mar 04, 2010 at 08:45:05PM +0100, Steven Van Acker wrote:
>> I would like to use #pragma directives to let my cilly extension skip
>> certain functions like so:
>>         #pragma myskip somefunc
>> The problem I'm running in to, is that pragma attributes need to be
>> formatted in a specific way,
>
>        To have #pragmas accepted by CIL, they
> must be formatted like GNU __attribute__()s.
> See the node "Attribute Syntax" in the gcc Info
> file.
>
> Here is an example:
>
>        #pragma my_pragma(foo("Hiho silver!"), bar("yow/whatsup.huh", 123))

Ah, thank you.
With some experimenting, I found that

#pragma bla("something") is parsed as

GPragma(Attr("bla", [AStr("something")]), loc)

kind regards,
-- Steven

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to