From 8f627c5afcf4a959cf3937d6c89732745eebbbb8 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 15 Oct 2017 21:29:09 +0200 Subject: Fix param generation for function pointers Fixes #10 --- src/DocGen/CGen.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/DocGen') 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); + } }); } -- cgit v1.2.3