diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-02-07 17:51:21 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-04-11 15:57:42 +0200 |
commit | 1e99cc2d5ddfaaddab9d518c52f1cb83b9ce8cfd (patch) | |
tree | 6a8a6bd66a2a280fae9a0c5e44a1929cc801096f | |
parent | 8ff6c2f13c3945f2409fd54dd05b0211e4b9f955 (diff) | |
download | cmocka-1e99cc2d5ddfaaddab9d518c52f1cb83b9ce8cfd.tar.gz cmocka-1e99cc2d5ddfaaddab9d518c52f1cb83b9ce8cfd.tar.bz2 cmocka-1e99cc2d5ddfaaddab9d518c52f1cb83b9ce8cfd.zip |
include: Fix count parameter of expect_check() macro
It was always using 0, which meant that the values were never
ever used. This commit changes it to 1, which is consistent with
the other macros.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | include/cmocka.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cmocka.h b/include/cmocka.h index ed5965c..4799da0 100644 --- a/include/cmocka.h +++ b/include/cmocka.h @@ -389,7 +389,7 @@ void expect_check(#function, #parameter, #check_function, const void *check_data #else #define expect_check(function, parameter, check_function, check_data) \ _expect_check(#function, #parameter, __FILE__, __LINE__, check_function, \ - cast_to_largest_integral_type(check_data), NULL, 0) + cast_to_largest_integral_type(check_data), NULL, 1) #endif #ifdef DOXYGEN |