result structs #15

Open
opened 2024-07-30 14:29:26 +02:00 by kevin · 0 comments
Owner

Add a formalized "rt_XXX_result" struct mechanism.

This is currently done for threading.h (there with a bool, instead of rt_result, mem_arena.h with int ok) and could be done for more creation functions.

  • RT_RESULT_STRUCT(T) macro (expand to struct { rt_result ok; T value; })
  • Convenience macros (IS_OK, ...)
  • Adapt existing result structs.
Add a formalized "rt_XXX_result" struct mechanism. This is currently done for threading.h (there with a bool, instead of rt_result, mem_arena.h with int ok) and could be done for more creation functions. - [ ] RT_RESULT_STRUCT(T) macro (expand to struct { rt_result ok; T value; }) - [ ] Convenience macros (IS_OK, ...) - [ ] Adapt existing result structs.
kevin added the
priority
medium
kind
refactoring
labels 2024-07-30 14:29:26 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kevin/rtengine#15
No description provided.