Pycparser raises a parser error when trying to parse statements that contain #pragma.
A typical example comes from Apple's iPhoneOS.sdk/usr/include/sys/event.h:371 (SDK 13).
The relevant sys/event.h:371 source code is:
struct knote;
SLIST_HEAD(klist, knote);
Once pre-processed, the SLIST_HEAD macro expands to:
Pycparser raises a parser error when trying to parse statements that contain
#pragma
.A typical example comes from Apple's
iPhoneOS.sdk/usr/include/sys/event.h:371
(SDK 13).The relevant
sys/event.h:371
source code is:Once pre-processed, the
SLIST_HEAD
macro expands to:Note the
#pragma
that comes before the end-of-statement;
.When parsing, pycparser raises the following error: