Skip to content

Commit

Permalink
Make sure either STRING or STRINGLIT are defined
Browse files Browse the repository at this point in the history
Co-authored-by: panglesd <[email protected]>
  • Loading branch information
Leonidas-from-XIV and panglesd committed Jan 26, 2022
1 parent 456de66 commit 1864d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pretty.ml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ let rec format std (out:Format.formatter) (x:t) : unit =
if std then
#ifdef STRING
let representation = `String s in
#else
#elif defined STRINGLIT
let representation = `Stringlit s in
#endif
format std out representation
Expand All @@ -61,7 +61,7 @@ let rec format std (out:Format.formatter) (x:t) : unit =
if std then
#ifdef STRING
let representation = `String s in
#else
#elif defined STRINGLIT
let representation = `Stringlit s in
#endif
format std out (`List [ representation; x ])
Expand Down

0 comments on commit 1864d32

Please sign in to comment.