Skip to content

Commit

Permalink
Fix cpp_test without exceptions, misplaced #ifdef.
Browse files Browse the repository at this point in the history
  • Loading branch information
radarsat1 committed Aug 22, 2020
1 parent 2c1ef1c commit 5406bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ int main()
printf("st2 unexpectedly valid on port 9000.\n");
return 1;
}
#ifdef LO_USE_EXCEPTIONS
printf("Exception not thrown when expected!\n");
return 1;
#ifdef LO_USE_EXCEPTIONS
} catch(lo::Invalid e) {
printf("Invalid! (unexpected)\n");
return 1;
Expand Down

0 comments on commit 5406bdb

Please sign in to comment.