diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-02-21 11:58:03 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-02-21 16:30:14 +0100 |
commit | a1e707b30ad819b15445d785819516ad58da4aa2 (patch) | |
tree | 217d041fee5b4f8450a494dc039b129c7f85159b /doc/index.html | |
parent | 1e56a5646d30594e3174a9811d5b1bb7bd4bd77d (diff) | |
download | cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.tar.gz cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.tar.bz2 cmocka-a1e707b30ad819b15445d785819516ad58da4aa2.zip |
Enable warning Wundef
It is better to use "#ifdef" for testing macros instead of "#if"
In header file, "#ifdef DOXYGEN" was used 30 times and "#if DOXYGEN"
23 times. This patch makes it consistent and enable warning Wundef to prevent
this kind of issues.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'doc/index.html')
-rw-r--r-- | doc/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/index.html b/doc/index.html index 8db0247..5f7c5a7 100644 --- a/doc/index.html +++ b/doc/index.html @@ -137,7 +137,7 @@ calls to <b>mock_assert()</b> occur during the function called via #include <assert.h> // If unit testing is enabled override assert with mock_assert(). -#if UNIT_TESTING +#ifdef UNIT_TESTING extern void mock_assert(const int result, const char* const expression, const char * const file, const int line); #undef assert @@ -285,7 +285,7 @@ the test application to exit prematurely.</p> <listing> #include <malloc.h> -#if UNIT_TESTING +#ifdef UNIT_TESTING extern void* _test_malloc(const size_t size, const char* file, const int line); extern void* _test_calloc(const size_t number_of_elements, const size_t size, const char* file, const int line); |