Changeset 14200


Ignore:
Timestamp:
Nov 27, 2019 3:39:30 PM (9 days ago)
Author:
Jonathan Kämpe
Message:

#5883 Added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-jk-2720/Compiler/ModelicaCBackEnd/src/jastadd/CCodeGen/CCodeGenAlgorithms.jrag

    r14198 r14200  
    1919        void genTempArg(CodePrinter.StepPrinter p, CodeStream str, String indent);
    2020        boolean shouldBeDifferentiated();
     21        /**
     22         * Returns a string that denotes which macro will be used when assigning the value.
     23         * Depends on the FType and circumstances which might enable optimizations.
     24         */
    2125        String assignMacroType();
    2226        boolean isImmutable();
     
    114118    syn String FAbstractVariable.assignMacroType(FType type);
    115119    eq FAbstractVariable.assignMacroType(FType type) = type.macroType();
     120    // Strings in z vector need to be deallocated before they are replaced, hence the STR_Z macro type.
    116121    eq FVariable        .assignMacroType(FType type) = isString() && !inRecord() ? "STR_Z" : type.macroType();
    117122
Note: See TracChangeset for help on using the changeset viewer.