Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Changeset [8a080d5ad4ffa8d65a6f4c2fbefece73c4ab0e87] by Thell Fowler

Revision 8a080d5ad4ffa8d65a6f4c2fbefece73c4ab0e87, committed 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...

6 changed files

  • 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