Skip to content

Commit

Permalink
Add braces around case blocks
Browse files Browse the repository at this point in the history
Otherwise one cannot declare variables there.
  • Loading branch information
eschnett committed Jul 28, 2013
1 parent 052f8d3 commit 66a6aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/CodeGenC.m
Expand Up @@ -215,7 +215,7 @@

DefFn[
switchOption[{value:(_String|_Symbol|_?NumberQ), block:CodeGenBlock}] :=
{"case ", value, ":\n", IndentBlock[{block,"break;\n"}]}];
{"case ", value, ":\n", CBlock[{block,"break;\n"}]}];
(* Outer list unnecessary? *)

DefFn[
Expand Down

0 comments on commit 66a6aa1

Please sign in to comment.