|
|
@ -198,6 +198,7 @@ Google Test (the name is chosen to match `static_assert` in C++0x). |
|
|
|
If you are writing a function that returns an `ACTION` object, you'll |
|
|
|
If you are writing a function that returns an `ACTION` object, you'll |
|
|
|
need to know its type. The type depends on the macro used to define |
|
|
|
need to know its type. The type depends on the macro used to define |
|
|
|
the action and the parameter types. The rule is relatively simple: |
|
|
|
the action and the parameter types. The rule is relatively simple: |
|
|
|
|
|
|
|
|
|
|
|
| **Given Definition** | **Expression** | **Has Type** | |
|
|
|
| **Given Definition** | **Expression** | **Has Type** | |
|
|
|
|:-------------------------|:-----------------------------|:-------------------------| |
|
|
|
|:-------------------------|:-----------------------------|:-------------------------| |
|
|
|
| `ACTION(Foo)` | `Foo()` | `FooAction` | |
|
|
|
| `ACTION(Foo)` | `Foo()` | `FooAction` | |
|
|
|