MCPcopy Create free account
hub / github.com/KDE/kdiff3 / xalloc_die

Method xalloc_die

src/gnudiff_xmalloc.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26void (*xalloc_fail_func)() = nullptr;
27
28void GnuDiff::xalloc_die()
29{
30 if(xalloc_fail_func)
31 (*xalloc_fail_func)();
32 //error (exit_failure, 0, "%s", _(xalloc_msg_memory_exhausted));
33 /* The `noreturn' cannot be given to error, since it may return if
34 its first argument is 0. To help compilers understand the
35 xalloc_die does terminate, call exit. */
36 exit(EXIT_FAILURE);
37}
38
39/* Allocate N bytes of memory dynamically, with error checking. */
40

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected