|
| 1 | +# Compilers |
| 2 | +## Source |
| 3 | +src/lpcomps.h |
| 4 | +## Content |
| 5 | +## \_\_has_xxx_compiler\_\_ |
| 6 | +#### Type |
| 7 | +macros |
| 8 | +#### Description |
| 9 | +1 if there is a corresponding compiler, otherwise 0. |
| 10 | +The 'xxx' here refers to the compiler name, and details can be found in the 'src/lpcomps.h' source code. |
| 11 | + |
| 12 | +**Note: An environment may contain multiple compiler environments** |
| 13 | +#### Usage |
| 14 | +```c |
| 15 | +#include <platform_predef.h> |
| 16 | +#if __has_msvc_compiler__ |
| 17 | +#error "You are compile with MSVC!" |
| 18 | +#endif |
| 19 | +int main(){} |
| 20 | +``` |
| 21 | +#### Prototype |
| 22 | +```c |
| 23 | +/*ACC*/ |
| 24 | +#define __has_acc_compiler__ 0 |
| 25 | +/*Altium MicroBlaze C*/ |
| 26 | +#define __has_has_altium_microblaze_c_compiler__ 0 |
| 27 | +/*Altium C-to-Hardware*/ |
| 28 | +#define __has_altium_c_to_hardware_compiler__ 0 |
| 29 | +/*Amsterdam Compiler Kit*/ |
| 30 | +#define __has_amsterdam_compiler__ 0 |
| 31 | +/*ARM Compiler*/ |
| 32 | +#define __has_arm_compiler__ 0 |
| 33 | +/*Aztec C*/ |
| 34 | +#define __has_aztec_c_compiler__ 0 |
| 35 | +/*Borland C/C++*/ |
| 36 | +#define __has_borland_compiler__ 0 |
| 37 | +/*CC65*/ |
| 38 | +#define __has_cc65_compiler__ 0 |
| 39 | +/*Clang*/ |
| 40 | +#define __has_clang_compiler__ 0 |
| 41 | +/*Comeau*/ |
| 42 | +#define __has_comeau_compiler__ 0 |
| 43 | +/*Compaq C/C++*/ |
| 44 | +#define __has_compaq_compiler__ 0 |
| 45 | +/*Convex C*/ |
| 46 | +#define __has_convex_c_compiler__ 0 |
| 47 | +/*CompCert*/ |
| 48 | +#define __has_compcert_compiler__ 0 |
| 49 | +/*Coverity C/C++ Static Analyzer*/ |
| 50 | +#define __has_coverity_compiler__ 0 |
| 51 | +/*Cray C*/ |
| 52 | +#define __has_cray_c_compiler__ 0 |
| 53 | +/*Diab C/C++*/ |
| 54 | +#define __has_diab_compiler__ 0 |
| 55 | +/*DICE C*/ |
| 56 | +#define __has_dice_c_compiler__ 0 |
| 57 | +/*Digital Mars*/ |
| 58 | +#define __has_digital_mars_compiler__ 0 |
| 59 | +/*Dignus Systems/C++*/ |
| 60 | +#define __has_dignus_systems_compiler__ 0 |
| 61 | +/*DJGPP*/ |
| 62 | +#define __has_djgpp_compiler__ 0 |
| 63 | +/*EDG C++ Frontend*/ |
| 64 | +#define __has_edg_compiler__ 0 |
| 65 | +/*EKOPath*/ |
| 66 | +#define __has_ekopath_compiler__ 0 |
| 67 | +/*Fujitsu C++*/ |
| 68 | +#define __has_fujitsu_compiler__ 0 |
| 69 | +/*GCC C/C++*/ |
| 70 | +#define __has_gcc_compiler__ 0 |
| 71 | +/*Green Hill C/C++*/ |
| 72 | +#define __has_greenhill_compiler__ 0 |
| 73 | +/*HP ANSI C*/ |
| 74 | +#define __has_hpansi_c_compiler__ 0 |
| 75 | +/*HP aC++*/ |
| 76 | +#define __has_hpa_compiler__ 0 |
| 77 | +/*IAR C/C++*/ |
| 78 | +#define __has_iar_compiler__ 0 |
| 79 | +/*ImageCraft C*/ |
| 80 | +#define __has_imagecraft_c_compiler__ 0 |
| 81 | +/*Intel C/C++*/ |
| 82 | +#define __has_intel_compiler__ 0 |
| 83 | +/*KAI C++*/ |
| 84 | +#define __has_kai_compiler__ 0 |
| 85 | +/*KEIL CARM*/ |
| 86 | +#define __has_keil_carm_compiler__ 0 |
| 87 | +/*KEIL C166*/ |
| 88 | +#define __has_keil_c166_compiler__ 0 |
| 89 | +/*KEIL C51*/ |
| 90 | +#define __has_keil_c51_compiler__ 0 |
| 91 | +/*LCC*/ |
| 92 | +#define __has_lcc_compiler__ 0 |
| 93 | +/*LLVM*/ |
| 94 | +#define __has_llvm_compiler__ 0 |
| 95 | +/*MetaWare High C/C++*/ |
| 96 | +#define __has_metaware_high_compiler__ 0 |
| 97 | +/*Metrowerks CodeWarrior*/ |
| 98 | +#define __has_metrowerks_codewarrior_compiler__ 0 |
| 99 | +/*Microsoft Visual C++*/ |
| 100 | +#define __has_msvc_compiler__ 0 |
| 101 | +/*Microtec C/C++*/ |
| 102 | +#define __has_microtec_compiler__ 0 |
| 103 | +/*Microway NDP C*/ |
| 104 | +#define __has_microway_ndp_c_compiler__ 0 |
| 105 | +/*MinGW*/ |
| 106 | +#define __has_mingw_compiler__ 0 |
| 107 | +/*MIPSpro*/ |
| 108 | +#define __has_mipspro_compiler__ 0 |
| 109 | +/*Miracle C*/ |
| 110 | +#define __has_miracle_c_compiler__ 0 |
| 111 | +/*MPW C++*/ |
| 112 | +#define __has_mpr_compiler__ 0 |
| 113 | +/*Norcroft C*/ |
| 114 | +#define __has_norcroft_c_compiler__ 0 |
| 115 | +/*NWCC*/ |
| 116 | +#define __has_nwcc_compiler__ 0 |
| 117 | +/*Open64*/ |
| 118 | +#define __has_open64_compiler__ 0 |
| 119 | +/*Oracle Pro*C Precompiler*/ |
| 120 | +#define __has_oracle_pro_compiler__ 0 |
| 121 | +/*Oracle Solaris Studio*/ |
| 122 | +#define __has_oracle_solaris_studio_compiler__ 0 |
| 123 | +/*Pacific C*/ |
| 124 | +#define __has_pacific_c_compiler__ 0 |
| 125 | +/*Palm C/C++*/ |
| 126 | +#define __has_palm_compiler__ 0 |
| 127 | +/*Pelles C*/ |
| 128 | +#define __has_pelles_c_compiler__ 0 |
| 129 | +/*Portland Group C/C++*/ |
| 130 | +#define __has_portland_group_compiler__ 0 |
| 131 | +/*Renesas C/C++*/ |
| 132 | +#define __has_renesas_compiler__ 0 |
| 133 | +/*SAS/C*/ |
| 134 | +#define __has_sas_c_compiler__ 0 |
| 135 | +/*SCO OpenServer*/ |
| 136 | +#define __has_sco_compiler__ 0 |
| 137 | +/*Small Device C Compiler*/ |
| 138 | +#define __has_small_device_compiler__ 0 |
| 139 | +/*SN Compiler*/ |
| 140 | +#define __has_sn_compiler__ 0 |
| 141 | +/*Stratus VOS C*/ |
| 142 | +#define __has_stratus_vos_c_compiler__ 0 |
| 143 | +/*Symantec C++*/ |
| 144 | +#define __has_symantec_compiler__ 0 |
| 145 | +/*TenDRA C/C++*/ |
| 146 | +#define __has_tendra_compiler__ 0 |
| 147 | +/*Texas Instruments C/C++ Compiler*/ |
| 148 | +#define __has_texas_instruments_compiler__ 0 |
| 149 | +/*THINK C*/ |
| 150 | +#define __has_think_c_compiler__ 0 |
| 151 | +/*Tiny C*/ |
| 152 | +#define __has_tiny_c_compiler__ 0 |
| 153 | +/*Turbo C/C++*/ |
| 154 | +#define __has_turboc_compiler__ 0 |
| 155 | +/*Ultimate C/C++*/ |
| 156 | +#define __has_ultimate_compiler__ 0 |
| 157 | +/*USL C*/ |
| 158 | +#define __has_usl_c_compiler__ 0 |
| 159 | +/*VBCC*/ |
| 160 | +#define __has_vbcc_compiler__ 0 |
| 161 | +/*Watcom C++*/ |
| 162 | +#define __has_watcom_compiler__ 0 |
| 163 | +/*Zortech C++*/ |
| 164 | +#define __has_zortech_compiler__ 0 |
| 165 | +``` |
0 commit comments