Changeset db19e1d for src/CodeGen
- Timestamp:
- Sep 3, 2024, 12:08:09 PM (2 months ago)
- Branches:
- master
- Children:
- 737bf73
- Parents:
- cdbb909
- Location:
- src/CodeGen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
rcdbb909 rdb19e1d 180 180 181 181 if ( 0 == decl->params.size() ) { 182 if ( decl->type->isVarArgs ) { 182 if ( !decl->type->isVarArgs ) { 183 acc << "(void)"; 184 } else if ( options.genC ) { 183 185 acc << "()"; 184 186 } else { 185 acc << "( void)";187 acc << "(...)"; 186 188 } 187 189 } else { -
src/CodeGen/GenType.cpp
rcdbb909 rdb19e1d 168 168 169 169 if ( type->params.empty() ) { 170 if ( type->isVarArgs ) { 170 if ( !type->isVarArgs ) { 171 os << "(void)"; 172 } else if ( options.genC ) { 171 173 os << "()"; 172 174 } else { 173 os << "( void)";175 os << "(...)"; 174 176 } 175 177 } else {
Note: See TracChangeset
for help on using the changeset viewer.