On 4 June 2012 19:49, Artur Skawina <[email protected]> wrote: > Would it be possible to allow give the gcc attribute as a string? > So that it would be possible to express 'pragma(attribute, align(8))' etc > > Because right now you can not do this: > > pragma(attribute, pure) > pragma(attribute, const) > > And I just realized that i need these attributes. :) > > Something like > > pragma(attribute, gcc("pure")) > > maybe? > > artur
You can use underscores as alternate syntax: pragma(attribute, __pure__) pragma(attribute, __const__) Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
