diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2015-09-30 12:43:06 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-09-30 12:43:06 +0200 |
commit | f1db65a08565316bf46f9210f834ce4f40432697 (patch) | |
tree | 48a8dec7796bd6f6728e35adf489efb1bd1c222c | |
parent | da22fa6c2435c8421817292e5ca1269c7f4e4959 (diff) | |
download | cmocka-f1db65a08565316bf46f9210f834ce4f40432697.tar.gz cmocka-f1db65a08565316bf46f9210f834ce4f40432697.tar.bz2 cmocka-f1db65a08565316bf46f9210f834ce4f40432697.zip |
include: Improve documentation for prestate macros
-rw-r--r-- | include/cmocka.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/cmocka.h b/include/cmocka.h index e4aa5b2..72e4e5e 100644 --- a/include/cmocka.h +++ b/include/cmocka.h @@ -1504,18 +1504,20 @@ static inline void _unit_test_dummy(void **state) { #define cmocka_unit_test_setup_teardown(f, setup, teardown) { #f, f, setup, teardown, NULL } /** - * Initialize a CMUnitTest structure with given initial state. It will be passed to test - * function as an argument later. It can be used when test state does not need special initialization - * or was initialized already. - * If group state was initialized for this unit test, it won't be overrided by initial state defined here. + * Initialize a CMUnitTest structure with given initial state. It will be passed + * to test function as an argument later. It can be used when test state does + * not need special initialization or was initialized already. + * @note If the group setup function initialized the state already, it won't be + * overridden by the initial state defined here. */ #define cmocka_unit_test_prestate(f, state) { #f, f, NULL, NULL, state } /** - * Initialize a CMUnitTest structure with given initial state, setup and teardown function. Any of - * these values can be NULL. Initial state is passed later to setup function, or directly to test if - * none was given. - * If group state was initialized for this unit test, it won't be overrided by initial state defined here. + * Initialize a CMUnitTest structure with given initial state, setup and + * teardown function. Any of these values can be NULL. Initial state is passed + * later to setup function, or directly to test if none was given. + * @note If the group setup function initialized the state already, it won't be + * overridden by the initial state defined here. */ #define cmocka_unit_test_prestate_setup_teardown(f, setup, teardown, state) { #f, f, setup, teardown, state } |