https://github.com/ignackocom/cppstandards
Cpp Standards
https://github.com/ignackocom/cppstandards
c code mit-license source standard
Last synced: 10 months ago
JSON representation
Cpp Standards
- Host: GitHub
- URL: https://github.com/ignackocom/cppstandards
- Owner: ignackocom
- License: mit
- Created: 2025-03-17T17:45:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-29T05:46:03.000Z (10 months ago)
- Last Synced: 2025-03-29T06:27:44.131Z (10 months ago)
- Topics: c, code, mit-license, source, standard
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# CppStandards
Cpp standards
Example of use
```
#if defined(__cplusplus) && __cplusplus == CPP11
...
Cpp 11 code
...
#endif
```
another example
```
#if CPLUSPLUS_VERSION == CPPPRE98
...
CPPPRE98 code
...
#elif CPLUSPLUS_VERSION == CPP98
...
CPP98 code
...
#elif CPLUSPLUS_VERSION == CPP11
...
CPP11 code
...
#else
...
other code
...
#endif
```
another example
```
printf("cpp version = %ld\n", GET_CPLUSPLUS_VERSION());
printf("cpp version year = %ld\n", GET_CPLUSPLUS_VERSION_YEAR());
```
# History of changes ...