Changeset [8a080d5ad4ffa8d65a6f4c2fbefece73c4ab0e87] by Thell Fowler
December 17th, 2009 @ 07:21 PM
func_guards: introduce func_guard category setup
-
Add 3 primary FuncGuard files to enable all source files to use any func_guard category and give control over the enable/disable status via a single header by uncommenting/commenting out #define lines.
-
Add a pre-build event to copy the tracked header skeleton ( which has all categories disabled ) to the #included header on the first build.
-
Include in the contrib directory the funcguard.bat script to make it possible to quickly add new func_guard categories to the three primary files, and the untracked header if it has already been created.
-
This setup allows for the following workflow: Build. Notice something you desire to trace. (ie: command line arg parsing.) Do 'funcguard -add guard_WinMain' Uncomment #define NPPCR_GUARD_WINMAIN in FuncGuards.h to enable. Copy the func_guard(guard_WinMain); from the usage line in FuncGuards.h Paste that line into each of the functions in WinMain.cpp you want to trace. Rebuild. (notice only FuncGuard.cpp && WinMain.cpp rebuilds.) Comment out the #define NPPCR_GUARD_WINMAIN to disable. Rebuild. (notice only FuncGuard.cpp rebuilds.) Commit changes without worrying about if the Guard is enabled/disabled. Submit commits to the project.
Signed-off-by: Thell Fowler git@tbfowler.name
http://github.com/almostautomated/npp-community/commit/8a080d5ad4ff...
Committed by Thell Fowler
- A PowerEditor/src/MISC/Debug/FuncGuards.cpp
- A PowerEditor/src/MISC/Debug/FuncGuardsImport.h
- A PowerEditor/src/MISC/Debug/FuncGuards_skel.h
- M PowerEditor/src/precompiled_headers.h
- M PowerEditor/src/winmain.cpp
- M PowerEditor/visual.net/notepadPlus.9.vcproj
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Notepad++ Community Release