nppDebug Func Guards: accept multiple guard categories in a scope.
-
Thell Fowler
(from [9e5d7de144a71bbe6e9c3e30e929a6a2111860da]) NppDebug: process variadic category flags
- Allow multiple func guard categories in the variadic func_guard() preprocessor command and pass as a list to the FuncGuard function for iteration to find an enabled one.
- Add Boost Preprocessor and Variadic_Macro library headers in the Common path.
-
Add test cases for passing multiple categories where either both are enabled, the first enabled and the second disabled, the first disabled and second enabled, and both disabled.
-
Variadic_Macro_Data lib was obtained from the Boost SVN Sandbox, the BOOST_PP headers where extracted from Boost using the bcp tool against NppDebug.cpp and the VMD .hpp files.
[#49]
Signed-off-by: Thell Fowler git@tbfowler.name
https://github.com/almostautomated/npp-community/commit/9e5d7de144a... -
Thell Fowler
While this patch set does add quite a few files (110) and does add some preprocessor processing that wasn't there before I was not able to determine any noticeable change in a full clean rebuild after multiple tests. Sometimes it was a few seconds slower, sometimes a few seconds faster...
-
Thell Fowler
- State changed from new to needs_ack
-
Thell Fowler
- Assigned user changed from Thell Fowler to npp-community
-
Thell Fowler
- State changed from needs_ack to open
Reverted status to open because I figured out why we had the 'category' string there. It was for implementing a way to have guard_debugf_cat retain indenting when it was used outside of the current guarded function but within the for the same category.
I'll see what I can come up with for this.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.