From 5406bdbdc0f9cd7d8beff07fcd1c09145c1b4e58 Mon Sep 17 00:00:00 2001 From: Stephen Sinclair Date: Tue, 14 Jul 2020 19:15:40 +0200 Subject: [PATCH] Fix cpp_test without exceptions, misplaced #ifdef. --- src/cpp_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp_test.cpp b/src/cpp_test.cpp index 579c102c..13b26aab 100644 --- a/src/cpp_test.cpp +++ b/src/cpp_test.cpp @@ -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;