We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48224f0 commit 6759e85Copy full SHA for 6759e85
Source/OCMock/OCMock.h
@@ -24,18 +24,18 @@
24
25
#define OCMObserverMock() [OCMockObject observerMock]
26
27
-#define OCMStub(invocation) (^ () \
28
-{ \
+#define OCMStub(invocation) \
+({ \
29
[OCMMacroState beginStubMacro]; \
30
invocation; \
31
- return [OCMMacroState endStubMacro]; \
32
-})()
+ [OCMMacroState endStubMacro]; \
+})
33
34
-#define OCMExpect(invocation) (^ () \
35
+#define OCMExpect(invocation) \
36
[OCMMacroState beginExpectMacro]; \
37
38
- return [OCMMacroState endExpectMacro]; \
39
+ [OCMMacroState endExpectMacro]; \
40
41
#define OCMVerifyAll(mock) [mock verifyAtLocation:OCMMakeLocation(self, __FILE__, __LINE__)]
0 commit comments