العودة إلى  مدرسة الكمبيوتر   قسم البرمجة     الصفحة الثانية

The #warning Conditional Directive

The #warning directive takes a string as an argument and produces a warning message at compile-time. Warnings produced by this directive are displayed as normal compiler warnings.

Like the #error directive, this directive is most useful for detecting pre-defined constraints and inconsistencies during preprocessing of a source file.

Syntax

#warning <message string>

The message string identifier shown above indicates the warning message to be displayed. The following example illustrates use of the #warning directive:

    #if !TRACING
        #warning This interface has not been completely tested yet!
    #endif

When the warning above is encountered, the following line will be output:

    #warning 'This interface has not been completely tested yet!' (J5500)
 
 طباعة المقال العودة إلى  مدرسة الكمبيوتر   قسم البرمجة     الصفحة الثانية
Syria
سورية
Amrit
عمريت
أرواد
طرطوس
صور من طرطوس
صور من سورية
للسيدات فقط
معجم الكمبيوتر
أدب وفكر
المجلة الطبية
المعلومات العامة
لمحة عن طرطوس
الموضة النسائية
مدرسة الكمبيوتر
 © 2002-2012 LBCInformation Corporation. All rights reserved م حنا عطا لحود.