Changes in src/CodeGen/CodeGenerator.cpp [0139351:9ddcee1]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
r0139351 r9ddcee1 192 192 } 193 193 194 assert( decl->returns.size() < 2 ); 194 195 if ( 1 == decl->returns.size() ) { 195 196 ast::ptr<ast::Type> const & type = decl->returns[0]->get_type(); 196 197 output << genTypeNoAttr( type, acc.str(), subOptions ); 197 } else if ( 0 == decl->returns.size() ){198 } else { 198 199 output << "void " + acc.str(); 199 } else {200 assertf( !options.genC, "Multi-return should not reach code generation." );201 ast::ptr<ast::Type> type = new ast::TupleType( copy( decl->type->returns ) );202 output << genTypeNoAttr( type, acc.str(), subOptions );203 200 } 204 201
Note:
See TracChangeset
for help on using the changeset viewer.