Commit 9083a0e6 by Edward Thomson

trace: use GIT_ASSERT

parent e1af2e55
...@@ -20,7 +20,7 @@ struct git_trace_data git_trace__data = {0}; ...@@ -20,7 +20,7 @@ struct git_trace_data git_trace__data = {0};
int git_trace_set(git_trace_level_t level, git_trace_cb callback) int git_trace_set(git_trace_level_t level, git_trace_cb callback)
{ {
#ifdef GIT_TRACE #ifdef GIT_TRACE
assert(level == 0 || callback != NULL); GIT_ASSERT_ARG(level == 0 || callback != NULL);
git_trace__data.level = level; git_trace__data.level = level;
git_trace__data.callback = callback; git_trace__data.callback = callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment