#error?

Mar 10, 2019 at 3:51am
closed account (N8MNAqkS)
What is this for, all it does is post an error message and stop the program from running. Is there any practical use for this, or is it just a thing because it can be.
Mar 10, 2019 at 4:32am
It has nothing to do with your program. It stops the compiler from running. Use it to indicate that compilation cannot continue unless something necessary is fixed.
Mar 10, 2019 at 4:41am
1
2
3
#ifdef _WIN32
#error Nope! No way! Sorry, but no.
#endif 

Last edited on Mar 10, 2019 at 4:41am
Topic archived. No new replies allowed.