Remove duplicate doxygen comment when using simple Java enums
This commit is contained in:
parent
ecc66fdcbd
commit
ae32180709
1 changed files with 8 additions and 8 deletions
|
|
@ -1274,17 +1274,17 @@ public:
|
||||||
EnumFeature enum_feature = decodeEnumFeature(n);
|
EnumFeature enum_feature = decodeEnumFeature(n);
|
||||||
String *typemap_lookup_type = Getattr(n, "name");
|
String *typemap_lookup_type = Getattr(n, "name");
|
||||||
|
|
||||||
if (doxygen && doxygenTranslator->hasDocumentation(n)) {
|
|
||||||
String *doxygen_comments = doxygenTranslator->getDocumentation(n, 0);
|
|
||||||
if (comment_creation_chatter)
|
|
||||||
Printf(enum_code, "/* This was generated from enumDeclaration() */\n");
|
|
||||||
Printv(enum_code, Char(doxygen_comments), NIL);
|
|
||||||
Delete(doxygen_comments);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((enum_feature != SimpleEnum) && symname && typemap_lookup_type) {
|
if ((enum_feature != SimpleEnum) && symname && typemap_lookup_type) {
|
||||||
// Wrap (non-anonymous) C/C++ enum within a typesafe, typeunsafe or proper Java enum
|
// Wrap (non-anonymous) C/C++ enum within a typesafe, typeunsafe or proper Java enum
|
||||||
|
|
||||||
|
if (doxygen && doxygenTranslator->hasDocumentation(n)) {
|
||||||
|
String *doxygen_comments = doxygenTranslator->getDocumentation(n, 0);
|
||||||
|
if (comment_creation_chatter)
|
||||||
|
Printf(enum_code, "/* This was generated from enumDeclaration() */\n");
|
||||||
|
Printv(enum_code, Char(doxygen_comments), NIL);
|
||||||
|
Delete(doxygen_comments);
|
||||||
|
}
|
||||||
|
|
||||||
String *scope = getCurrentScopeName(nspace);
|
String *scope = getCurrentScopeName(nspace);
|
||||||
if (!addSymbol(symname, n, scope))
|
if (!addSymbol(symname, n, scope))
|
||||||
return SWIG_ERROR;
|
return SWIG_ERROR;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue