diff options
| author | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2017-10-16 07:15:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-16 07:15:29 +0200 |
| commit | 8e458eb615e60f066f9b094e21741cdc5d8588c4 (patch) | |
| tree | 44266e48c37f9f01155aa5f77f81d647737423d0 /src/DocGen/CGen.ts | |
| parent | c7ebe707bbfbe52c75646a111600986d6c584d03 (diff) | |
| parent | 4e65a500f7f6e65d9d3c62f04cc8ab60df47c597 (diff) | |
| download | doxdocgen-8e458eb615e60f066f9b094e21741cdc5d8588c4.tar.gz | |
Merge pull request #17 from christophschlosser/fix-func-ptr-param
Fix param generation for function pointers
Diffstat (limited to 'src/DocGen/CGen.ts')
| -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); + } }); } |