mirror of
https://github.com/fumiama/base16384-sycl.git
synced 2026-06-05 08:40:34 +08:00
17 lines
360 B
C++
17 lines
360 B
C++
#ifndef _ERRORS_HPP_
|
|
#define _ERRORS_HPP_
|
|
|
|
#include <functional>
|
|
|
|
typedef enum {
|
|
errors_code_ok,
|
|
errors_code_sync_sycl_exception,
|
|
errors_code_std_exception,
|
|
errors_code_unknown_exception,
|
|
} errors_code_enum_t;
|
|
|
|
// failed try to exec fn, catch and print .what() when exception is thrown.
|
|
errors_code_enum_t failed(std::function<void(void)> fn);
|
|
|
|
#endif
|