diff options
| author | Rowan Goemans <RB.Goemans@student.han.nl> | 2017-12-31 02:54:54 +0100 |
|---|---|---|
| committer | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-02-20 22:02:22 +0100 |
| commit | 16e4ed410f2bc29e528bf6ec872bdf92478749a7 (patch) | |
| tree | 9f9a661c150460de78fc8f88796158d2cb32f362 /src/Lang/C/CParser.ts | |
| parent | 1746f21bc3720585d2fe877db8d69aae301ff02c (diff) | |
| download | doxdocgen-16e4ed410f2bc29e528bf6ec872bdf92478749a7.tar.gz | |
-- Added test for constructors and destructors.
-- Removed config value for null on bool pointer return. I think it's to confusing for users.
-- Fixed some small remaining refactor bugs.
Diffstat (limited to 'src/Lang/C/CParser.ts')
| -rw-r--r-- | src/Lang/C/CParser.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lang/C/CParser.ts b/src/Lang/C/CParser.ts index 6d3d85b..859dc6b 100644 --- a/src/Lang/C/CParser.ts +++ b/src/Lang/C/CParser.ts @@ -297,7 +297,7 @@ export default class CParser implements ICodeParser { const func = this.GetArgument(tree); // check if it is a constructor or descructor since these have no name.. // and reverse the assignment of type and name. - if (func.name === undefined) { + if (func.name === null) { if (func.type.nodes.length !== 1) { throw new Error("Too many symbols found for constructor/descructor."); } else if (func.type.nodes[0] instanceof CParseTree) { |