diff options
| author | Christoph Schlosser <christoph@linux.com> | 2017-10-15 21:29:09 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2017-10-15 21:29:09 +0200 |
| commit | 8f627c5afcf4a959cf3937d6c89732745eebbbb8 (patch) | |
| tree | fc0c8586dee0ad6ccc7dcd0eecc87d62dc57f34c /src/DocGen | |
| parent | c7ebe707bbfbe52c75646a111600986d6c584d03 (diff) | |
| download | doxdocgen-8f627c5afcf4a959cf3937d6c89732745eebbbb8.tar.gz | |
Fix param generation for function pointers
Fixes #10
Diffstat (limited to 'src/DocGen')
| -rw-r--r-- | src/DocGen/CGen.ts | 9 |
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); + } }); } |