Made darr in DArray_at const. Added ScufContResult_to_str().

This commit is contained in:
2026-08-13 21:35:16 +03:00
parent 07844f1f79
commit ea847feb57
3 changed files with 22 additions and 3 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
#ifndef SCUFCONT_H_
#define SCUFCONT_H_
#define SCUFCONT_RESULT_X(X) \
X(SCUFCONT_SUCCESS) \
X(SCUFCONT_OUT_OF_MEMORY)
#define X(val) val,
typedef enum {
SCUFCONT_SUCCESS,
SCUFCONT_OUT_OF_MEMORY
SCUFCONT_RESULT_X(X)
} ScufContResult;
#undef X
extern const char* SCUFCONT_VERSION;
const char* ScufContResult_to_str(const ScufContResult res);
#endif // SCUFCONT_H_