https://github.com/ignackocom/ccompilers
C Compiler constants
https://github.com/ignackocom/ccompilers
c code compiler constants detection macros mit-license source
Last synced: 5 months ago
JSON representation
C Compiler constants
- Host: GitHub
- URL: https://github.com/ignackocom/ccompilers
- Owner: ignackocom
- License: mit
- Created: 2025-03-24T13:23:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:35:40.000Z (9 months ago)
- Last Synced: 2025-04-11T05:34:36.733Z (9 months ago)
- Topics: c, code, compiler, constants, detection, macros, mit-license, source
- Language: C
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# CCompilers
C Compiler constants and macros for determining compiler
Example of use
```
#if COMPILER == 0
#error "Unknown compiler"
#endif
#if COMPILER == COMPILER_MICROSOFT_VISUAL_CPP
...
Visual studio c code
...
#elif COMPILER == COMPILER_BORLAND_CPP
...
Borland cpp code
...
#else
...
other code
...
#endif
```
NOTE:
it is not fully tested,
because it is quite impossible to test all combinations,
you can make a copy of the source codes and change the code as needed
# History of changes ...
2025 04 11 CompilerKEILCARM.h bug fixed