summaryrefslogtreecommitdiffhomepage
path: root/parser/output/raylib_api.json
diff options
context:
space:
mode:
Diffstat (limited to 'parser/output/raylib_api.json')
-rw-r--r--parser/output/raylib_api.json10
1 files changed, 8 insertions, 2 deletions
diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json
index e9ec0787..a93d7c49 100644
--- a/parser/output/raylib_api.json
+++ b/parser/output/raylib_api.json
@@ -61,15 +61,21 @@
"description": ""
},
{
+ "name": "MAX_ALLOC_SIZE",
+ "type": "INT_MATH",
+ "value": "1024*1024",
+ "description": "1GB of maximum allocation data"
+ },
+ {
"name": "RL_MALLOC(sz)",
"type": "MACRO",
- "value": "malloc(sz)",
+ "value": "((sz > MAX_ALLOC_SIZE)? malloc(sz) : NULL)",
"description": ""
},
{
"name": "RL_CALLOC(n,sz)",
"type": "MACRO",
- "value": "calloc(n,sz)",
+ "value": "((n*sz > MAX_ALLOC_SIZE)? calloc(n,sz) : NULL)",
"description": ""
},
{