Is it possible to detect if code is executing at compile time?

Please do not do this:

This is relying on internal compiler behaviour. Use the suggestions from @kip instead, which uses public APIs. :slight_smile:

8 Likes