Skip to content

Commit

Permalink
CodeGenC.m: Eliminate messages about source language
Browse files Browse the repository at this point in the history
C is the only language that currently works
  • Loading branch information
ianhinder committed Nov 29, 2011
1 parent 9120e25 commit a1fdc91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Tools/CodeGen/CodeGenC.m
Expand Up @@ -78,11 +78,10 @@
If[lang == "C" || lang == "Fortran",
SOURCELANGUAGE = lang;
setSourceSuffix[lang];
InfoMessage[Terse, "User set source language to " <> lang],
If[lang =!= "C", InfoMessage[Terse, "User set source language to " <> lang]],
(* else *)
SOURCELANGUAGE = "C";
setSourceSuffix[".cc"];
InfoMessage[Terse, "Setting Source Language to C"]];
setSourceSuffix[".cc"]];

EOL[dummy___] :=
If[SOURCELANGUAGE == "C" || SOURCELANGUAGE == "C++", ";\n", "\n"];
Expand Down

0 comments on commit a1fdc91

Please sign in to comment.