C 특정 헤더 파일이 필요한 파일이 있습니다. 해당 헤더 파일이 없으면 전 처리기에서 특정 경고를 발행합니다. 같은 뭔가 :C 전처리 기가 헤더 파일을 찾을 수없고 특정 경고를 발행 할 수 있는지 감지 할 수 있습니까?
#if !(#include <special.h>)
#warning "Don't worry, you can fix this."
#warning "You just need to update this other repo over here:"
#endif
이는 C 전처리와 함께 할 수 있습니까?
메이크 파일 파일에서 가능합니다. –
보통'./configure' 스크립트로 할 수 있습니다. –
가능한 [C 처리기를 사용하여 파일이 있는지 알려줄 수 있습니까?] (http://stackoverflow.com/questions/142877/can-the-c) -preprocessor-be-tell-if-a-file-exists) –