mirror of
https://github.com/fumiama/base16384-sycl.git
synced 2026-06-09 04:30:28 +08:00
optimize: project structure
This commit is contained in:
16
include/errors.hpp
Normal file
16
include/errors.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user