Changeset 6d45949 in OpenModelica
- Timestamp:
- 2021-01-19T17:44:30+01:00 (3 years ago)
- Branches:
- Added-citation-metadata, maintenance/v1.17, maintenance/v1.18, maintenance/v1.19, maintenance/v1.20, maintenance/v1.21, maintenance/v1.22, master, omlib-staging
- Children:
- 03da1b5
- Parents:
- f1f813af
- git-author:
- Per Östlund <perost86@…> (01/19/21 16:36:26)
- git-committer:
- perost <perost86@…> (01/19/21 17:44:30)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/Compiler/Util/FlagsUtil.mo
rf5ad9af3 r6d45949 1862 1862 String name; 1863 1863 list<String> strl = {}; 1864 Boolean fvalue; 1864 1865 algorithm 1865 1866 try … … 1881 1882 1882 1883 for f in allDebugFlags loop 1883 if f.default <> debug_flags[f.index] then 1884 strl := f.name :: strl; 1884 fvalue := debug_flags[f.index]; 1885 if f.default <> fvalue then 1886 name := if fvalue then f.name else "no" + f.name; 1887 strl := name :: strl; 1885 1888 end if; 1886 1889 end for; -
testsuite/openmodelica/interactive-API/getCommandLineOptions.mos
r221b299 r6d45949 17 17 setCommandLineOptions("--postOptModules=dumpDAE,dumpDAEXML"); 18 18 getCommandLineOptions(); 19 setCommandLineOptions("-d=-newInst"); 20 getCommandLineOptions(); 19 21 20 22 // Result: … … 29 31 // true 30 32 // {"-d=ceval,failtrace","--postOptModules=dumpDAE,dumpDAEXML","--showAnnotations=true"} 33 // true 34 // {"-d=nonewInst,ceval,failtrace","--postOptModules=dumpDAE,dumpDAEXML","--showAnnotations=true"} 31 35 // endResult
Note: See TracChangeset
for help on using the changeset viewer.