php-c-parser icon indicating copy to clipboard operation
php-c-parser copied to clipboard

Add support for pragma error/warning

Open ircmaxell opened this issue 6 years ago • 0 comments

Currently, if #pragma error is encountered, an error will be raised since #pragma isn't supported. But if #7 adds support for #pragma once and ignores other pragmas, we'll need to raise appropriate errors and warnings.

Support for the following versions should be added:

#error An error occurred
#pragma GCC error "An error occurred"
_Pragma("GCC error \"An error occurred\"");

ircmaxell avatar Aug 27 '19 15:08 ircmaxell