Skip to content

Commit

Permalink
lab4: amend usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruize Tang committed Jan 10, 2018
1 parent a691604 commit 8cbc394
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ int restorestdin() {
/* invoke program with argument '--help' */
void usage() {
extern char *program_invocation_name;
#if COMPILER_VERSION >= 3
#if COMPILER_VERSION >= 4
fprintf(stderr, "Usage: %s [CMM source] [OUTPUT asm]\n", program_invocation_name);
#elif COMPILER_VERSION >= 3
fprintf(stderr, "Usage: %s [CMM source] [OUTPUT ir]\n", program_invocation_name);
#else
fprintf(stderr, "Usage: %s [CMM source]\n", program_invocation_name);
Expand Down

0 comments on commit 8cbc394

Please sign in to comment.