Comment #0 by alphaglosined — 2013-11-21T23:07:45Z
For language manipulation features like AST macros hooks into error and warning at the compiler may add value in the future.
Proposal is to add pragma(error,) and pragma(warning,).
They should behave as pragma(msg,) except be hooked into the compilers warning and error systems.
There is currently static assert(0, ) which does do close to what pragma(error,) proposed does however it also does prepend "static assert" to the output. Because of this the purpose to me is different.
However if pragma(warning,) was to be added and not pragma(error,) it would be confusing for new users to not have it all in one place.
(In reply to comment #3)
>
> I know I created it. I only created this at request.
I know, I can read. The two are supposed to be cross-linked, so progress can be tracked, and old work can be found if the pull is closed.
Comment #5 by b2.temp — 2020-02-20T15:22:28Z
The attempt to add this feature was rejected
"pragma error would be redundant with static assert, and pragma warning is redundant with pragma msg."