diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-02-24 16:00:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | 12e5135d95dc34fd7f7a7c50d6dbac453f252683 (patch) | |
tree | eb9d1225855a02aa90f4fa5f90228018e6fa1785 /include/alloc.h | |
parent | f11c4b63ff74bffb1d42d95167b3384a2f7765ea (diff) |
Add result check for msvc
Diffstat (limited to 'include/alloc.h')
-rw-r--r-- | include/alloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/alloc.h b/include/alloc.h index 35223b3..6809287 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -7,8 +7,8 @@ #define ALLOC_OK 0 #define ALLOC_FAIL -1 -WARN_UNUSED_RESULT int am_malloc(usize size, void **mem); -WARN_UNUSED_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); +CHECK_RESULT int am_malloc(usize size, void **mem); +CHECK_RESULT int am_realloc(void *mem, usize new_size, void **new_mem); void am_free(void *mem); #endif |