Kylix Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
카일릭스 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
자유게시판
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

카일릭스 팁&트릭
[5] [팁] kylix에서 사용할수있는 조건지시자 (DEFINE)
갑연.eric [neoic] 6448 읽음    2002-05-12 13:01
{$IFDEF LINUX}
  //do Linux-specific code here
{$ENDIF}
{$IFDEF MSWINDOWS}
  //do WIndows-specific code here
{$ENDIF}

보통 크로스 플랫폼으로 개발할때 이렇게 사용하는데 그 외 사용가능한 symbol입니다.
Conditional SymbolMeaningDefined In
CPU386compiling on an 80386 or betterall versions of Kylix and Delphi
VER80compiler version 8Delphi 1
VER90compiler version 9Delphi 2
VER93compiler version 9.3C++Builder 1
VER100compiler version 10Delphi 3
VER110compiler version 11C++Builder 3
VER120compiler version 12Delphi 4
VER125compiler version 12.5C++Builder 4
VER130compiler version 13Delphi/C++Builder 5
VER140compiler version 14Delphi/C++Builder 6, Kylix 1 & 2
BCBDelphi code being compiled from within C++BuilderC++Builder
GAMMA_TESTDelphi code being compiled from a pre-release (gamma test) productC++Builder 4 (this was a bug and should not be defined in any shipping product)
WINDOWScompiling for Win16 platformDelphi 1
WIN32compiling for Win32 platform32-bit Delphi versions from 2 onwards
MSWINDOWScompiling for any Windows platformDelphi 6 and later
LINUXcompiling for any Linux platformKylix
LINUX32compiling for 32-bit Linux platformKylix
POSIXCompiling for a POSIX-compliant OSKylix
POSIX32Compiling for a 32-bit POSIX-compliant OSKylix
PICposition independent code being generatedKylix when compiling shared objects
ELFcompiling an ELF format executable fileKylix
PC_MAPPED_EXCEPTIONSprogram counter based exception handling, as opposed to OS-based exception handlingKylix
DECLARE_GPLcompiling a GPL applicationKylix Open Edition
CONDITIONALEXPRESSIONSconditional directives support expression evaluationDelphi/C++Builder 6 and later and Kylix
그럼..

+ -

관련 글 리스트
5 [팁] kylix에서 사용할수있는 조건지시자 (DEFINE) 갑연.eric 6448 2002/05/12
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.