CH is a C/C++ interpreter. Information about it can be found here and is described as:
"Ch is the most complete, cross-platform C interpreter and scripting engine in existence.".
It appears that the check for _CH_ is to determine if a C file is being processed under CH. In this case if it was being processed by CH then it would process the line #pragma importf "foobar.c".
From what I can tell from the CH documentation the #pragma importf imports another file:
search module1.c in current directory first, then directories specified in _fpath
In our case it would search for "foobar.c" and import it.
In environments other than CH, _CH_ wouldn't be defined and the statements in the #ifdef _CH_ block are ignored.