summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-12-09 09:44:03 -0800
committerRussell Belfer <rb@github.com>2013-12-11 10:57:50 -0800
commit26c1cb91beccb44425864bd233ed0e35f5801868 (patch)
tree378f665d0adebca36a14a590f2103f2e5cd6c9ac /src/common.h
parentf10d7a368fa4af28b1e6f082349ffa4f62b3c00e (diff)
downloadlibgit2-26c1cb91beccb44425864bd233ed0e35f5801868.tar.gz
One more rename/cleanup for callback err functions
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common.h b/src/common.h
index 71182bbb9..e315b5979 100644
--- a/src/common.h
+++ b/src/common.h
@@ -83,7 +83,8 @@ int giterr_set_regex(const regex_t *regex, int error_code);
*
* @return This always returns the `error_code` parameter.
*/
-GIT_INLINE(int) giterr_set_callback(int error_code, const char *action)
+GIT_INLINE(int) giterr_set_after_callback_function(
+ int error_code, const char *action)
{
if (error_code) {
const git_error *e = giterr_last();
@@ -95,9 +96,11 @@ GIT_INLINE(int) giterr_set_callback(int error_code, const char *action)
}
#ifdef GIT_WIN32
-#define GITERR_CALLBACK(code) giterr_set_callback((code), __FUNCTION__)
+#define giterr_set_after_callback(code) \
+ giterr_set_after_callback_function((code), __FUNCTION__)
#else
-#define GITERR_CALLBACK(code) giterr_set_callback((code), __func__)
+#define giterr_set_after_callback(code) \
+ giterr_set_after_callback_function((code), __func__)
#endif
/**