What language of C families has a preprocessor?

Among the C -syntax family of languages ( C , C ++, Java, C #, ObjC, JS, AS, ...) that are compatible with the preprocessor (to some extent) with the C preprocessor ?

+3
source share
3 answers

The C object is a superset of the C language and was originally implemented as an additional preprocessor for C code. It is fully compatible with the C preprocessor.

You call none of the others preprocessors compatible with C spec. Keep in mind that in many cases preprocessors are assembly / compiler specific, and the functionality you are looking for may or may not be found in different, integrated IDE / compilers.

Of course, C ++ is 100% (more or less) compatible.

+3
source

C ++ and objective-C both use the C preprocessor, none of the others do.

You can always add a macro processor or template language to any build process if you need it.

0
source

Java JS (JS , , ). AS, C, ++ ObjC C-grade.

# , , . http://msdn.microsoft.com/en-us/library/ed8yd1ha(VS10.0).aspx

Boost awesum preprocessor library.

0
source

Source: https://habr.com/ru/post/1746747/


All Articles