Debian Codegraph @

src/util/allocators/failalloc.h

raw
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7
8 #ifndef INCLUDE_allocators_failalloc_h__
9 #define INCLUDE_allocators_failalloc_h__
10
11 #include "git2_util.h"
12
13 extern void *git_failalloc_malloc(size_t len, const char *file, int line);
14 extern void *git_failalloc_realloc(void *ptr, size_t size, const char *file, int line);
15 extern void git_failalloc_free(void *ptr);
16
17 #endif