aboutsummaryrefslogtreecommitdiff
path: root/client/memory.c
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-07 23:58:20 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-07 23:58:20 +0200
commita75b3f7b47c074f2191a33c1f14ad4148754ed80 (patch)
treef719fbdcd92dfd09f8da8610c4e94090f64352b5 /client/memory.c
parent4dcb97eec19bcb5365fb355a81e299545b97ef75 (diff)
Throw away the C client since it doesn't work
Diffstat (limited to 'client/memory.c')
-rw-r--r--client/memory.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/client/memory.c b/client/memory.c
deleted file mode 100644
index aec3da2..0000000
--- a/client/memory.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "global.h"
-#include "memory.h"
-
-void* check_after_allocation(const char *func,size_t num,size_t sz,void *ptr){
- if(ptr==NULL){
- die("Allocation failed: %s(%zu * %zuB = %zu)",func,num,sz,num*sz);
- }
- return ptr;
-}
-
-void* check_after_allocation_str(const char *func,void *ptr){
- if(ptr==NULL){
- die("Allocation failed: %s()",func);
- }
- return ptr;
-}