summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2024-07-01 18:30:22 +0200
committerRay <[email protected]>2024-07-01 18:30:22 +0200
commitfbd79cde5f67ec863832a95942ae0c2e88947bbc (patch)
treed828531157d77062126e00534cf945b3cf16cd48 /src
parentd243094ede4386ed2ff6e07009fa5b292dda328c (diff)
downloadraylib-fbd79cde5f67ec863832a95942ae0c2e88947bbc.tar.gz
raylib-fbd79cde5f67ec863832a95942ae0c2e88947bbc.zip
Reverted memory allocators additional checks
Diffstat (limited to 'src')
-rw-r--r--src/raylib.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h
index ebc7fe55..2c7a6a57 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -123,12 +123,11 @@
// Allow custom memory allocators
// NOTE: Require recompiling raylib sources
-#define MAX_ALLOC_SIZE 1024*1024 // 1GB of maximum allocation data
#ifndef RL_MALLOC
- #define RL_MALLOC(sz) ((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)
+ #define RL_MALLOC(sz) malloc(sz)
#endif
#ifndef RL_CALLOC
- #define RL_CALLOC(n,sz) ((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)
+ #define RL_CALLOC(n,sz) calloc(n,sz)
#endif
#ifndef RL_REALLOC
#define RL_REALLOC(ptr,sz) realloc(ptr,sz)