Skip to content

Commit f144db1

Browse files
committed
[C] Simplified code
1 parent ac94ada commit f144db1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ before_build:
1515
- dir
1616
- cd build
1717
- dir
18-
- cmake -G "Visual Studio 15 2017 Win64" .. -DCERAII_DO_BEFORE_EXIT=ON
18+
- cmake -G "Visual Studio 15 2017 Win64" ..
1919

2020
build:
2121
project: $(APPVEYOR_BUILD_FOLDER)\build\$(APPVEYOR_PROJECT_NAME).sln

src/ceraii.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ SOFTWARE.
4343
#endif
4444

4545
#ifdef CERAII_MICROSOFT_COMPILER
46-
#ifndef CERAII_ACTIONS_BEFORE_RETURN_EXPRESSION
47-
#error ceraii: Doing actions after evaluating return expression is available onlu in gcc and clang
48-
#endif
46+
#define CERAII_ACTIONS_BEFORE_RETURN_EXPRESSION
4947
#endif
5048

5149
#ifdef __cplusplus

0 commit comments

Comments
 (0)