Update cook_book.md

This commit is contained in:
Hyuk Myeong 2019-08-22 09:47:35 +09:00 committed by GitHub
parent 0faff53326
commit a76d1910c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ class MockFoo {
};
```
위 코드는 macro에 전달된 argument를 올바르게 파싱하지 못하기 때문에 compile error가 발생합니다. 이를 위한 해결방법은 아래와 같습니다.
위 코드는 macro에 전달된 comma로 인해서 argument를 파싱할 때 모호함이 생기고 결국 compile error가 발생합니다. 다행히도 이에 대한 해결방법은 그렇게 어렵지 않습니다. 해결방법 2가지를 아래에서 확인하기 바랍니다.
해결방법 1 - 괄호로 감싸기