https://github.com/ajkhoury/preprocessor_def_guard
Adds guards for preprocessor definitions.
https://github.com/ajkhoury/preprocessor_def_guard
definition definitions format formatter guard pre-processing preprocessor
Last synced: 11 months ago
JSON representation
Adds guards for preprocessor definitions.
- Host: GitHub
- URL: https://github.com/ajkhoury/preprocessor_def_guard
- Owner: ajkhoury
- License: gpl-3.0
- Created: 2018-09-20T13:02:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-20T13:15:18.000Z (over 7 years ago)
- Last Synced: 2025-01-06T17:50:25.872Z (about 1 year ago)
- Topics: definition, definitions, format, formatter, guard, pre-processing, preprocessor
- Language: C
- Homepage:
- Size: 150 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# preprocessor_def_guard
Simple little script to enumerate a file for specific preprocessor definitions and adds a guard around them.
Example of the outcome of this script can be seen in the example [ntstatus.h](https://github.com/dude719/preprocessor_def_guard/blob/master/ntstatus.h)
Usage:
python preprocessor_def_guard.py [-i|--input-file=] [-o|--output-file=]
# License
Copyright (C) 2018 Aidan Khoury (dude719)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .