UT_Error는 클래스 이름인데
클래스 이름 앞에 UT_API는 UT_API.h라는 헤더파일을 인클루드 했더라구여
얼핏 봤을때는 컴파일러 검사하는것 같은데 이렇게 클래스 이름앞에 무언갈 집어 넣는걸 뭐라하는거죵?
밑에는 UT_API.h 소스
00001 00002 #ifndef __UT_API_h__ 00003 #define __UT_API_h__ 00004 00005 #include <SYS/SYS_Visibility.h> 00006 00007 #ifdef EXPORT_UT 00008 #define UT_API SYS_VISIBILITY_EXPORT 00009 #define UT_API_TINST SYS_VISIBILITY_EXPORT_TINST 00010 #else 00011 #define UT_API SYS_VISIBILITY_IMPORT 00012 #define UT_API_TINST SYS_VISIBILITY_IMPORT_TINST 00013 #endif 00014 00015 // Check that we are being built with valid compiler options. 00016 #ifdef WIN32 00017 #if _MSC_VER < 1300 00018 #error "You must compile with MS Visual C++ .NET 2003" 00019 #endif 00020 #ifndef __cplusplus 00021 #error "You must compile with the /TP switch (C++ Compilation)" 00022 #endif 00023 #ifndef _MT 00024 #error "You must compile with the /MD or /MT switch (Multithreaded CRT)" 00025 #endif 00026 #ifndef _CPPUNWIND 00027 #error "You must compile with the /GX switch (Exception Handling)" 00028 #endif 00029 #ifndef _CPPRTTI 00030 #error "You must compile with the /GR switch (RTTI)" 00031 #endif 00032 #ifndef WIN32 00033 #error "You must define WIN32" 00034 #endif 00035 #ifdef _M_IX86 00036 #ifndef SESI_LITTLE_ENDIAN 00037 #error "You must define SESI_LITTLE_ENDIAN for IX86 compilation" 00038 #endif 00039 #endif 00040 #endif 00041 00042 #endif
MS의 똥이라 합니당
헐 똥이라면 치우기 히들겠군여
MS의 define 퍼레이드는 노무노무 무섭졍ㅎㅎ