BPicture: Fix archive constructor.
[haiku.git] / src / kits / package / manager / PackageManagerUtils.h
blob8de9c5d5108fd0a9e5becbe1127aa18a5b685fbd
1 /*
2 * Copyright 2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef PACKAGE_MANAGER_UTILS_H
6 #define PACKAGE_MANAGER_UTILS_H
9 #include <package/manager/Exceptions.h>
12 #define DIE(...) \
13 do { \
14 throw BFatalErrorException(__VA_ARGS__); \
15 } while(0)
18 #define DIE_DETAILS(details, ...) \
19 do { \
20 throw BFatalErrorException(__VA_ARGS__).SetDetails(details); \
21 } while(0)
24 #endif // PACKAGE_MANAGER_UTILS_H