diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -42,6 +42,7 @@ #include "array_data.h" +#include "exceptions.h" #include "local_time.h" #include "warnings.h" LIBDCP_DISABLE_WARNINGS @@ -173,6 +174,16 @@ add_to_container(To& container, From source) } +void maybe_throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path); + + +template <typename T> +void throw_from_asdcplib(Kumu::Result_t result, boost::filesystem::path path, T const& general) +{ + maybe_throw_from_asdcplib(result, path); + boost::throw_exception(general); +} + } |
