added macro try_void
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user