Ignore:
Timestamp:
Oct 16, 2019 3:00:08 PM (7 weeks ago)
Author:
jwedin
Message:

Refactored the code generation for initializing delay expression. #5852

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-1247-jw/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CGenerator.jrag

    r13653 r13773  
    13061306       
    13071307        public void generate(CodeStream genPrinter) {
    1308             CodePrinter p = ASTNode.printer_C;
    1309             String indent = p.indent("");
    1310             for (FDelayExp d : fclass.myDelayExps()) {
    1311                 d.genInitVarDecls_C(p, genPrinter, indent);
    1312             }
    1313             for (FSpatialDistExp d : fclass.mySpatialDistExps()) {
    1314                 d.genInitVarDecls_C(p, genPrinter, indent);
    1315             }
    1316             for (FDelayExp d : fclass.myDelayExps()) {
    1317                 d.genInit_C(p, genPrinter, indent);
    1318             }
    1319             for (FSpatialDistExp d : fclass.mySpatialDistExps()) {
    1320                 d.genInit_C(p, genPrinter, indent);
    1321             }
     1308            fclass.genDelayInit_C(genPrinter);
    13221309        }
    13231310    }
Note: See TracChangeset for help on using the changeset viewer.