Re: How to make the compile time red color warning ?

2020-06-03 Thread Виталий Фадеев via Digitalmars-d-learn
On Wednesday, 3 June 2020 at 11:56:26 UTC, MrSmith wrote: On Wednesday, 3 June 2020 at 11:48:27 UTC, Виталий Фадеев wrote: Use case: I have class for Windows OS. I not implement class for Linux. I want message about it. When code compiled under Linux. You could use `static assert(false,

Re: How to make the compile time red color warning ?

2020-06-03 Thread MrSmith via Digitalmars-d-learn
On Wednesday, 3 June 2020 at 11:48:27 UTC, Виталий Фадеев wrote: Use case: I have class for Windows OS. I not implement class for Linux. I want message about it. When code compiled under Linux. You could use `static assert(false, "Message");` to make it an error.

How to make the compile time red color warning ?

2020-06-03 Thread Виталий Фадеев via Digitalmars-d-learn
Use case: I have class for Windows OS. I not implement class for Linux. I want message about it. When code compiled under Linux. Example: version ( Windows ) { public import ui.sys.windows.event.keyboardevent; } else { pragma( msg, "Unsupported OS" ); } How to make red color message