The [[C Sharp (programming language)|C#]] programming language also allows for directives, even though they are not read by a preprocessor and they cannot be used for creating macros, and isare generally more intended for features such as conditional compilation.<ref>{{cite web|url=https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives|title=C# preprocessor directives|date=14 January 2022 |publisher=Microsoft}}</ref> C# seldom requires the use of the directives, for example code inclusion does not require a preprocessor at all (as C# relies on a package/namespace system like Java, no code needs to be "included").
The [[Haskell]] programming language also allows the usage of the C preprocessor.