1
0
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:
源文雨
2025-09-28 16:12:45 +08:00
parent 949438b794
commit ad1df2bb98
7 changed files with 87 additions and 16 deletions

16
include/errors.hpp Normal file
View 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