#include "dx_platform.h"
#include <stdexcept>
#include <iomanip>
#include <chrono>
#include <mutex>
|
namespace | dx |
| dynax driver framework user mode interface namespace
|
|
namespace | dx::thread |
| thread
|
|
namespace | dx::trace |
|
|
#define | __dx_catchall(inject, ...) |
|
#define | dx_catchall(inject, ...) __dx_catchall(inject std::cerr<< exception<< std::endl;, ##__VA_ARGS__) |
|
#define | dx_catchall_handler(object, inject, ...) __dx_catchall(inject (object)->exception(exception);, ##__VA_ARGS__) |
|
#define | dx_catchall_handler_or_rethrow(object, test, inject, ...) dx_catchall_rethrow(inject if(test) (object)->exception(exception); else, ##__VA_ARGS__)\ |
|
#define | dx_catchall_rethrow(inject, ...) |
|
#define | dx_pass(test, ...) |
|
#define | dx_pass_strict(test, ...) |
|
◆ __dx_catchall
#define __dx_catchall |
( |
| inject, |
|
|
| ... ) |
Value:
try{\
&__dx_exception,\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
}catch(...){}\
}catch(const std::exception& __std_exception){\
try{\
__std_exception.what(),\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
}catch(...){}\
}catch(...){\
try{\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
}catch(...){}\
}
Definition dx_exception.h:133
os_result error
Definition dx_exception.h:136
@ unknown
Definition macOS/dx_platform.h:173
◆ dx_catchall
#define dx_catchall |
( |
| inject, |
|
|
| ... ) __dx_catchall(inject std::cerr<< exception<< std::endl;, ##__VA_ARGS__) |
◆ dx_catchall_handler
#define dx_catchall_handler |
( |
| object, |
|
|
| inject, |
|
|
| ... ) __dx_catchall(inject (object)->exception(exception);, ##__VA_ARGS__) |
◆ dx_catchall_handler_or_rethrow
#define dx_catchall_handler_or_rethrow |
( |
| object, |
|
|
| test, |
|
|
| inject, |
|
|
| ... ) dx_catchall_rethrow(inject if(test) (object)->exception(exception); else, ##__VA_ARGS__)\ |
◆ dx_catchall_rethrow
#define dx_catchall_rethrow |
( |
| inject, |
|
|
| ... ) |
Value:
&__dx_exception,\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
throw exception;\
}catch(const std::exception& __std_exception){\
__std_exception.what(),\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
throw exception;\
}catch(...){\
__FILE__, __LINE__,\
##__VA_ARGS__);\
inject\
throw exception;\
}
◆ dx_pass
#define dx_pass |
( |
| test, |
|
|
| ... ) |
Value: {\
dx::halt();\
__dx_test_status,\
__FILE__, __LINE__,\
##__VA_ARGS__);}}
#define DX_STRINGIFY(x)
Definition dx_macros.h:32
::mach_error_t os_result
Definition macOS/dx_platform.h:160
bool os_error(os_result result) noexcept
Definition macOS/dx_platform.h:183
◆ dx_pass_strict
#define dx_pass_strict |
( |
| test, |
|
|
| ... ) |
Value: {\
if (__dx_test_status){\
dx::halt();\
__dx_test_status,\
__FILE__, __LINE__,\
##__VA_ARGS__);}}