diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-09-29 21:11:30 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-09-29 21:11:30 +0200 |
commit | 604162acdf5283a9759c1b3ce9e90887a6599ce7 (patch) | |
tree | 06dc5f9ce330afb03922f822b9203169e17576e6 /depends/pack200/src/utils.h | |
parent | d267d86f6e24c4f947c30c1a3642d57b82f8addd (diff) | |
download | MultiMC-604162acdf5283a9759c1b3ce9e90887a6599ce7.tar MultiMC-604162acdf5283a9759c1b3ce9e90887a6599ce7.tar.gz MultiMC-604162acdf5283a9759c1b3ce9e90887a6599ce7.tar.lz MultiMC-604162acdf5283a9759c1b3ce9e90887a6599ce7.tar.xz MultiMC-604162acdf5283a9759c1b3ce9e90887a6599ce7.zip |
Turn pack200 into an actual library
Diffstat (limited to 'depends/pack200/src/utils.h')
-rw-r--r-- | depends/pack200/src/utils.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/depends/pack200/src/utils.h b/depends/pack200/src/utils.h index 0ce6b7d8..5a3dc8f6 100644 --- a/depends/pack200/src/utils.h +++ b/depends/pack200/src/utils.h @@ -25,6 +25,8 @@ // Definitions of our util functions +#include <stdexcept> + void *must_malloc(size_t size); // overflow management @@ -46,9 +48,6 @@ inline size_t add_size(size_t size1, size_t size2, int size3) return add_size(add_size(size1, size2), size3); } -// These may be expensive, because they have to go via Java TSD, -// if the optional u argument is missing. struct unpacker; -extern void unpack_abort(const char *msg, unpacker *u = nullptr); -extern bool unpack_aborting(unpacker *u = nullptr); - +/// This throws an exception! +extern void unpack_abort(const char *msg = nullptr); |