Makro tanımlanmış, ancak boş (herhangi bir değer içermiyor) olduğunu doğrulamak için bir kod yazmam gerekiyor. Testin derlenme zamanında olması gerekmez.C makro değeri boş olup olmadığını test edin
yazmaya çalışılıyor:
#if (funcprototype == "")
MY_WARN("funcprototype is empty");
#endif
kod derleme değil, funcprototype
boş genişler olarak.
Testin derleme zamanı testi olması gerekmez, ancak sonucu "# if" yönergesinde kullanmak istersiniz? Ne 'funcprototype' boş olmayan bir yedek listeye sahipse, ancak değiştirdikten sonra hiçbir şey yapılmazsa (yeniden taramaya bağlı olarak). –
Bu, http://stackoverflow.com/questions/4102351/test-for-empty-macro-definition –