summaryrefslogtreecommitdiff
path: root/src/notes.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-04-01 22:12:07 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2020-05-11 20:13:54 +0100
commitcbae1c219d97dbc3cb0b88abe3bf6c21d019ebf8 (patch)
treec696665694c911b8e7ce113d4f237de103ca6c9d /src/notes.h
parenta95096ba5f72db71422ffd9ea6630160387b97c0 (diff)
downloadlibgit2-ethomson/assert_macros.tar.gz
assert: allow non-int returning functions to assertethomson/assert_macros
Include GIT_ASSERT_WITH_RETVAL and GIT_ASSERT_ARG_WITH_RETVAL so that functions that do not return int (or more precisely, where `-1` would not be an error code) can assert. This allows functions that return, eg, NULL on an error code to do that by passing the return value (in this example, `NULL`) as a second parameter to the GIT_ASSERT_WITH_RETVAL functions.
Diffstat (limited to 'src/notes.h')
0 files changed, 0 insertions, 0 deletions