diff options
author | amy <[email protected]> | 2023-05-10 21:11:18 +0000 |
---|---|---|
committer | amy <[email protected]> | 2023-05-10 21:11:18 +0000 |
commit | 27bde9ac32d331a4441e91fa4a7a73d1508b4600 (patch) | |
tree | 5de0e9cd667c149b9f05b3cc8e2443909ac49a71 /src/util.h | |
parent | 45b4264a7377db319ff920314e788aad4f58a60b (diff) |
better stuff!
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -12,8 +12,8 @@ static const double NaN = 0.0f/0.0f; #define diff(a,b) ((a)>(b)?(a)-(b):(b)-(a)) #ifndef skip_memory_trace -#define malloc(X) malloc(X); mmalloc(); -#define free(X) free(X); ffree(); +#define malloc(X) mmalloc(X,(char*)__FILE__,(int)__LINE__,(char*)__FUNCTION__); +#define free(X) ffree(X,(char*)__FILE__,(int)__LINE__,(char*)__FUNCTION__); #endif #ifndef stfu @@ -30,8 +30,8 @@ static const double NaN = 0.0f/0.0f; #endif double binomial(int n, int k); -void mmalloc(); -void ffree(); +void* mmalloc(ulong,char*,int,char*); +void ffree(void*,char*,int,char*); void err_m(char*,void (*)(int),char*,int); void warn_m(char*,char*,int ,...); void info_m(char*,char*,int ,...); |