mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
Add THROW contract call
This commit is contained in:
committed by
Edward Hennis
parent
2f5d721ec1
commit
729caaacff
@@ -43,12 +43,11 @@ throwException(
|
||||
|
||||
} // detail
|
||||
|
||||
template <class Exception,
|
||||
class... Args>
|
||||
template <class Exception, class... Args>
|
||||
void
|
||||
Throw (Args&&... args)
|
||||
{
|
||||
throwException(
|
||||
detail::throwException(
|
||||
std::make_exception_ptr(
|
||||
Exception(std::forward<
|
||||
Args>(args)...)));
|
||||
@@ -59,6 +58,11 @@ void
|
||||
LogicError (
|
||||
std::string const& how);
|
||||
|
||||
/** Called to throw an exception. */
|
||||
#ifndef THROW
|
||||
#define THROW(T, arg) Throw<T>(arg)
|
||||
#endif
|
||||
|
||||
} // ripple
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user