src: rework optimizeReloc handling; cleanups

This commit is contained in:
Markus F.X.J. Oberhumer
2023-02-21 15:19:24 +01:00
parent 8d364c82e2
commit 4a8efd2e2f
23 changed files with 430 additions and 381 deletions
+9 -4
View File
@@ -26,8 +26,6 @@
*/
#pragma once
#ifndef UPX_EXCEPT_H__
#define UPX_EXCEPT_H__ 1
const char *prettyName(const char *n) noexcept;
@@ -213,8 +211,15 @@ NORET void throwOutOfMemoryException(const char *msg = nullptr);
NORET void throwIOException(const char *msg = nullptr, int e = 0);
NORET void throwEOFException(const char *msg = nullptr, int e = 0);
template <class T>
void throwCantPack(const T *, ...) = delete;
template <>
NORET void throwCantPack(const char *format, ...) attribute_format(1, 2);
template <class T>
void throwCantUnpack(const T *, ...) = delete;
template <>
NORET void throwCantUnpack(const char *format, ...) attribute_format(1, 2);
#undef NORET
#endif /* already included */
/* vim:set ts=4 sw=4 et: */