GMP error handling

Kevin Ryde user42 at
Tue Feb 24 08:12:37 CET 2004

nisse at (Niels Möller) writes:
> I usually prefer return codes from the failing function, but an error
> callback on out-of-memory sounds like it would at least be an
> improvement over hacks like longjmp:ing out of the memory allocation
> functions.

I don't think the memory stuff will change.  The alloc/realloc
functions must return a valid block, or not return at all.

More information about the gmp-devel mailing list