Skip to content

Commit 5406bdb

Browse files
committed
Fix cpp_test without exceptions, misplaced #ifdef.
1 parent 2c1ef1c commit 5406bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ int main()
240240
printf("st2 unexpectedly valid on port 9000.\n");
241241
return 1;
242242
}
243+
#ifdef LO_USE_EXCEPTIONS
243244
printf("Exception not thrown when expected!\n");
244245
return 1;
245-
#ifdef LO_USE_EXCEPTIONS
246246
} catch(lo::Invalid e) {
247247
printf("Invalid! (unexpected)\n");
248248
return 1;

0 commit comments

Comments
 (0)