split property & values into separate classes and files
Signed-off-by: Folling <mail@folling.io>
This commit is contained in:
parent
f38ebeab14
commit
e377340781
28 changed files with 700 additions and 269 deletions
|
|
@ -13,6 +13,7 @@
|
|||
constexpr inline size_t MAXIMUM_ERROR_INFOS = 8;
|
||||
constexpr inline size_t MAXIMUM_ERROR_MESSAGE_LENGTH = 256;
|
||||
|
||||
/// \private
|
||||
class FunctionContext {
|
||||
public:
|
||||
explicit FunctionContext(struct IkarusProject * project);
|
||||
|
|
@ -128,7 +129,7 @@ FunctionContext::~FunctionContext() {
|
|||
|
||||
template<typename... Infos>
|
||||
requires(std::is_same_v<IkarusErrorInfo, Infos> && ...) && (sizeof...(Infos) <= MAXIMUM_ERROR_INFOS)
|
||||
auto FunctionContext::set_error(std::string_view error_message, bool log_error, Infos... infos) {
|
||||
auto FunctionContext::set_error(std::string_view error_message, bool log_error, Infos... infos) -> void {
|
||||
if (error_message.size() > _project->error_message_buffer.size()) {
|
||||
_project->error_message_buffer.resize(error_message.size() + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue