Skip to content

Commit

Permalink
[tag] tag v2.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Jan 5, 2024
1 parent 205b3d0 commit d51d60e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Chunel Feng
Copyright (c) 2024 Chunel Feng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ int main() {
* 提供`proto`定义文件
* 添加`mutable`(异变)功能,提供依赖关系注册语法糖

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

Expand Down
11 changes: 5 additions & 6 deletions src/CBasic/CStrDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@

CGRAPH_NAMESPACE_BEGIN

static const std::string& CGRAPH_EMPTY = "";
static const std::string& CGRAPH_DEFAULT = "default";
static const std::string& CGRAPH_UNKNOWN = "unknown";
static const std::string& CGRAPH_BASIC_EXCEPTION = "CGraph default exception";
static const std::string& CGRAPH_FUNCTION_NO_SUPPORT = "CGraph function no support";
static const std::string& CGRAPH_INPUT_IS_NULL = "input is nullptr";
static const char* CGRAPH_EMPTY = "";
static const char* CGRAPH_DEFAULT = "default";
static const char* CGRAPH_UNKNOWN = "unknown";
static const char* CGRAPH_FUNCTION_NO_SUPPORT = "function no support";
static const char* CGRAPH_INPUT_IS_NULL = "input is nullptr";

CGRAPH_NAMESPACE_END

Expand Down
2 changes: 1 addition & 1 deletion src/UtilsCtrl/UtilsDefine.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ CStatus __ASSERT_NOT_NULL(T t, Args... args) {
template<typename T>
CVoid __ASSERT_NOT_NULL_THROW_EXCEPTION(T t) {
if (unlikely(nullptr == t)) {
CGRAPH_THROW_EXCEPTION("[CException] " + CGRAPH_INPUT_IS_NULL)
CGRAPH_THROW_EXCEPTION("[CException] " + std::string(CGRAPH_INPUT_IS_NULL))
}
}

Expand Down
9 changes: 7 additions & 2 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ tutorial_list = {
"T18-Event",
"T19-Cancel",
"T20-YieldResume",
"T21-MultiCondition"
"T21-MultiCondition",
"T22-Timeout",
"T23-Some",
"T24-Fence",
"T25-Coordinator",
"T26-Mutable"
}

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

0 comments on commit d51d60e

Please sign in to comment.