summaryrefslogtreecommitdiffstats
path: root/src/DocGen/CGen.ts
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2017-10-15 21:29:09 +0200
committerChristoph Schlosser <christoph@linux.com>2017-10-15 21:29:09 +0200
commit8f627c5afcf4a959cf3937d6c89732745eebbbb8 (patch)
treefc0c8586dee0ad6ccc7dcd0eecc87d62dc57f34c /src/DocGen/CGen.ts
parentc7ebe707bbfbe52c75646a111600986d6c584d03 (diff)
downloaddoxdocgen-8f627c5afcf4a959cf3937d6c89732745eebbbb8.tar.gz
Fix param generation for function pointers
Fixes #10
Diffstat (limited to 'src/DocGen/CGen.ts')
-rw-r--r--src/DocGen/CGen.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/DocGen/CGen.ts b/src/DocGen/CGen.ts
index c2750ee..e333014 100644
--- a/src/DocGen/CGen.ts
+++ b/src/DocGen/CGen.ts
@@ -108,9 +108,12 @@ export default class CGen implements IDocGen {
let line: string = "";
templateWith.forEach((element: string) => {
- line = this.commentPrefix;
- line += this.getTemplatedString(replace, template, element);
- lines.push(line);
+ // Ignore null values
+ if (element !== null) {
+ line = this.commentPrefix;
+ line += this.getTemplatedString(replace, template, element);
+ lines.push(line);
+ }
});
}