X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcpp.h;h=9d98abddbfe9ce6e5fcb29470da2abcaef3c945c;hp=be7a54caec378b6f31d60d1ccf9f94c6fb484a76;hb=93d6b7f962a82b725d1918684297d68221b0b733;hpb=cd0567b4052ee24259bc6b8a9858af9d26f3de48 diff --git a/src/cpp.h b/src/cpp.h index be7a54c..9d98abd 100644 --- a/src/cpp.h +++ b/src/cpp.h @@ -29,7 +29,7 @@ #include "data.h" #ifndef PSI_CPP_DEBUG -# define PSI_CPP_DEBUG 1 +# define PSI_CPP_DEBUG 0 #endif struct psi_cpp { @@ -49,6 +49,7 @@ struct psi_cpp { unsigned seen; unsigned expanded; unsigned counter; + unsigned include_level; bool do_cpp; }; @@ -69,6 +70,8 @@ bool psi_cpp_undef(struct psi_cpp *cpp, struct psi_token *tok); bool psi_cpp_has_include(struct psi_cpp *cpp, const struct psi_token *file, unsigned flags, char *path); bool psi_cpp_include(struct psi_cpp *cpp, const struct psi_token *file, unsigned flags); +bool psi_cpp_pragma(struct psi_cpp *cpp, struct psi_cpp_macro_decl *decl); + void psi_cpp_tokiter_reset(struct psi_cpp *cpp); bool psi_cpp_tokiter_seek(struct psi_cpp *cpp, size_t index); #if PSI_CPP_DEBUG > 1