mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00

Libgit2 is now officially include as #include "<git2.h>" or indidividual files may be included as #include <git2/index.h> Signed-off-by: Vicent Marti <tanoku@gmail.com>
25 lines
349 B
C
25 lines
349 B
C
#ifndef INCLUDE_errors_h__
|
|
#define INCLUDE_errors_h__
|
|
|
|
#include "git2/errors.h"
|
|
|
|
/* convenience functions */
|
|
GIT_INLINE(int) git_int_error(int code)
|
|
{
|
|
git_errno = code;
|
|
return code;
|
|
}
|
|
|
|
GIT_INLINE(int) git_os_error(void)
|
|
{
|
|
return git_int_error(GIT_EOSERR);
|
|
}
|
|
|
|
GIT_INLINE(void) *git_ptr_error(int code)
|
|
{
|
|
git_errno = code;
|
|
return NULL;
|
|
}
|
|
|
|
#endif
|