diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 13:39:51 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-03-14 13:41:02 +0100 |
commit | 230e9775f5b61e21aa085825fbbd0232e9a360ef (patch) | |
tree | 566ffe84fa4b57e0f77cd40f1de343669750d5ab /memory.c | |
parent | 54064158d84fc4006e651deb314cde156cc383e8 (diff) |
Room listing and creation
Diffstat (limited to 'memory.c')
-rw-r--r-- | memory.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -7,3 +7,10 @@ void* check_after_allocation(const char *func,size_t num,size_t sz,void *ptr){ } return ptr; } + +void* check_after_allocation_str(const char *func,void *ptr){ + if(ptr==NULL){ + die("Allocation failed: %s()",func); + } + return ptr; +} |