added macro try_void

This commit is contained in:
2025-08-04 16:32:23 +03:00
parent 6d959fe8f5
commit e0f1941c82
2 changed files with 5 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ Result(void) dir_create(cstr path){
return RESULT_VOID;
char* parentDir= str_copy(path_dirname(str_from_cstr((void*)path))).data;
try(_1, dir_create(parentDir), free(parentDir));
try_void(dir_create(parentDir), free(parentDir));
free(parentDir);
#if KFS_USE_WINDOWS_H
if(!CreateDirectory(path, NULL))