DtsodV24_serialize updated to safethrow

This commit is contained in:
2022-04-17 18:01:41 +03:00
parent 8d3991f8fb
commit 0464bd54df
7 changed files with 73 additions and 62 deletions

View File

@@ -21,6 +21,7 @@ typedef struct Maybe{
Unitype value;
char* errmsg;
} Maybe;
// return it if func doesn't return anything
static const Maybe MaybeNull={.value.type=Null, .value.VoidPtr=NULL,.errmsg=NULL};
void Maybe_free(Maybe e);