Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
070c3554
Commit
070c3554
authored
Jun 24, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 731985 - Variadic macros failing to expand if trailing ... is empty
parent
e24e777d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pre.l
src/pre.l
+3
-2
No files found.
src/pre.l
View file @
070c3554
...
@@ -886,8 +886,9 @@ static bool replaceFunctionMacro(const QCString &expr,QCString *rest,int pos,int
...
@@ -886,8 +886,9 @@ static bool replaceFunctionMacro(const QCString &expr,QCString *rest,int pos,int
}
}
// PHASE 2: apply the macro function
// PHASE 2: apply the macro function
if (argCount==def->nargs ||
if (argCount==def->nargs || // same number of arguments
(argCount>def->nargs && def->varArgs)) // matching parameters lists
(argCount>=def->nargs-1 && def->varArgs)) // variadic macro with at least as many
// params as the non-variadic part (see bug731985)
{
{
uint k=0;
uint k=0;
// substitution of all formal arguments
// substitution of all formal arguments
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment