GCC #pragma to stop compilation -


क्या कोई जीसीसी प्रोग्राम दिग्दर्शन है जो संकलन प्रक्रिया को रोक, रोक या रोक देगा?

I जीसीसी 4.1 का इस्तेमाल कर रहा हूं, लेकिन प्रोगामा को जीसीसी 3.x संस्करणों पर भी उपलब्ध होना चाहिये।

आप संभवतः # आतंक :

  edd @ ron: / tmp $ g ++ -Wall -DogoOn -o stopthis stopthis.cpp edd @ ron: / tmp $ ./stopthis चाहते हैं नमस्कार, विश्व एड डी @ रॉन: / टीएमपी $ जी + + -ब्लॉल-ओ स्टॉपथिस स्टॉपथिस.cpp stopthis.cpp: 7: 6: त्रुटि: #रर मेरे पास पर्याप्त edd @ ron था: / tmp $ cat stopthis.cpp #include & lt; iostream & gt ; Int मुख्य (शून्य) {std :: cout & lt; & lt; "हैलो, विश्व \ n"; #ifndef GoOn #error मेरे पास पर्याप्त #endif return 0 था; } Edd @ ron: / tmp $  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -