본문 바로가기

프로그램 공부/Unity 함수

#if (조건부 컴파일)

https://sciphy.tistory.com/887

 

[C언어] 조건부 컴파일 & 전처리 #if , #ifdef , #ifndef , #endif , #else , #elif

컴파일 전에 코드 수준에서의 조작에 있서서도 조건부 조작이 가능하다. #if 바로 뒤에 상수 또는 이미 정의된 문자상수가 온다. 즉, 평가시 상수인 표현이 온다. 평가값이 0 이면 다음줄 부터의 내용을 건너뛰고,..

sciphy.tistory.com

 

https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-if

 

#if 전처리기 지시문 - C# 참조

#if(C# 참조)#if (C# Reference) 이 문서의 내용 --> C# 컴파일러는 #if 지시문과 #endif 지시문이 차례로 확인되면 지정된 기호가 정의되어 있어야 지시문 사이의 코드를 컴파일합니다.When the C# compiler encounters an #if directive, followed eventually by an #endif directive, it compiles the code between the directives o

docs.microsoft.com

 

 

'프로그램 공부 > Unity 함수' 카테고리의 다른 글

특정시간을 주고 호출되는 함수 만들기  (0) 2019.08.08
[Range(Min, Max)]  (0) 2019.07.11
Coroutine (코루틴)  (0) 2019.07.03
에셋) DOTween  (0) 2019.07.02
List  (0) 2019.07.02