Skip to content

Commit d51d60e

Browse files
committed
[tag] tag v2.5.4
1 parent 205b3d0 commit d51d60e

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Chunel Feng
3+
Copyright (c) 2024 Chunel Feng
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ int main() {
303303
* 提供`proto`定义文件
304304
* 添加`mutable`(异变)功能,提供依赖关系注册语法糖
305305

306-
[2023.12.23 - v2.5.4 - Chunel]
306+
[2024.01.05 - v2.5.4 - Chunel]
307307
* 提供`test`内容,包含性能和功能方面的测试用例
308308
* 优化`event`(事件)机制,支持异步等待功能
309309

src/CBasic/CStrDefine.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515

1616
CGRAPH_NAMESPACE_BEGIN
1717

18-
static const std::string& CGRAPH_EMPTY = "";
19-
static const std::string& CGRAPH_DEFAULT = "default";
20-
static const std::string& CGRAPH_UNKNOWN = "unknown";
21-
static const std::string& CGRAPH_BASIC_EXCEPTION = "CGraph default exception";
22-
static const std::string& CGRAPH_FUNCTION_NO_SUPPORT = "CGraph function no support";
23-
static const std::string& CGRAPH_INPUT_IS_NULL = "input is nullptr";
18+
static const char* CGRAPH_EMPTY = "";
19+
static const char* CGRAPH_DEFAULT = "default";
20+
static const char* CGRAPH_UNKNOWN = "unknown";
21+
static const char* CGRAPH_FUNCTION_NO_SUPPORT = "function no support";
22+
static const char* CGRAPH_INPUT_IS_NULL = "input is nullptr";
2423

2524
CGRAPH_NAMESPACE_END
2625

src/UtilsCtrl/UtilsDefine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ CStatus __ASSERT_NOT_NULL(T t, Args... args) {
6969
template<typename T>
7070
CVoid __ASSERT_NOT_NULL_THROW_EXCEPTION(T t) {
7171
if (unlikely(nullptr == t)) {
72-
CGRAPH_THROW_EXCEPTION("[CException] " + CGRAPH_INPUT_IS_NULL)
72+
CGRAPH_THROW_EXCEPTION("[CException] " + std::string(CGRAPH_INPUT_IS_NULL))
7373
}
7474
}
7575

xmake.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ tutorial_list = {
3737
"T18-Event",
3838
"T19-Cancel",
3939
"T20-YieldResume",
40-
"T21-MultiCondition"
40+
"T21-MultiCondition",
41+
"T22-Timeout",
42+
"T23-Some",
43+
"T24-Fence",
44+
"T25-Coordinator",
45+
"T26-Mutable"
4146
}
4247

4348
-- add tutorial target one by one
@@ -47,4 +52,4 @@ for _, v in pairs(tutorial_list) do
4752
add_includedirs("src")
4853
add_headerfiles("src/CGraph.h")
4954
add_files("src/**.cpp", string.format("tutorial/%s.cpp", v))
50-
end
55+
end

0 commit comments

Comments
 (0)