diff options
author | Sven Gothel <[email protected]> | 2023-06-25 07:52:53 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-06-25 07:52:53 +0200 |
commit | b9bddbd7a75e7fa9812fdcc455a0c4857c3e9990 (patch) | |
tree | ad175ebee42967991f9a80ccd1068c46330e9519 | |
parent | c54c5699c752fcf2cee19ef9dc21cd4acb5aa6cd (diff) |
GlueGen FunctionSymbol: Simplify ctor reusing main-ctor; Be always reachable via type(def)name, ctor: addAliasedName( type.getCName() )
-rw-r--r-- | src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java b/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java index 91a0a5a..f4cd15f 100644 --- a/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java +++ b/src/java/com/jogamp/gluegen/cgram/types/FunctionSymbol.java @@ -65,15 +65,14 @@ public class FunctionSymbol extends AliasedSymbolImpl implements AliasedSemantic private final ASTLocusTag astLocus; public FunctionSymbol(final String name, final FunctionType type) { - super(name); - this.type = type; - this.astLocus = null; + this(name, type, null); } public FunctionSymbol(final String name, final FunctionType type, final ASTLocusTag locus) { super(name); this.type = type; this.astLocus = locus; + addAliasedName( type.getCName() ); // be reachable via typename } /** Shallow'ish copy, only aliased names are re-created. */ |