Check expression syntax in preprocessor

If I want check the expression in pragma, What function and class which I can call to check syntax of expression.

Thank you