다음을 통해 공유


#DisablePPDirective 전처리기 지시문

#DisablePPDirective:    Directive

#DisablePPDirective 지시문은 활성화된 지시문을 사용하지 않도록 설정합니다. 새 GDL 파일에 네임스페이스가 하나 이상의 새 지시문 이름과 충돌하는 이전 GDL 파일이 포함된 경우 파일을 포함하기 전에 새 지시문을 사용하지 않도록 설정한 다음 나중에 다시 활성화할 수 있습니다. 기본 이름은 필수 값입니다.

이 전처리기 지시문은 GDL의 새로운 기능입니다.

다음 코드 예제에서는 이 지시문을 사용하는 방법을 보여 줍니다.

#DisablePPDirective: duplicateDirective
#Include: "OlderFile.gdl"  *%  This file uses the name 
    *%  duplicateDirective because it does not expect that name to be interpreted by 
    *%  the preprocessor.
#EnablePPDirective: duplicateDirective
    *%  Reactivate  duplicateDirective  so it can be used by 
    *%  the newer host file.