If you look at Mx describe-variable c-offsets-alist , which defines a list of variables that represent the syntax constructs of various programming languages, you will only see cpp-macro and cpp-macro-cont , which represent macros and ongoing macros, respectively. The list does not indicate between #pragma and say #if .
Thus, there is no direct way that Emacs provides to communicate #pragma from other directives.
source share