blob: caebc63b34886497fa2b6ed9814a327d3c91e545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef INCLUDE_errors_h__
#define INCLUDE_errors_h__
#include "git/errors.h"
#include <stdlib.h>
/* convenience functions */
GIT_INLINE(int) git_int_error(int code)
{
git_errno = code;
return code;
}
GIT_INLINE(void) *git_ptr_error(int code)
{
git_errno = code;
return NULL;
}
#endif
|