summaryrefslogtreecommitdiffhomepage
path: root/parser/output/raylib_api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'parser/output/raylib_api.lua')
-rw-r--r--parser/output/raylib_api.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua
index 1ec84bca..97eeb868 100644
--- a/parser/output/raylib_api.lua
+++ b/parser/output/raylib_api.lua
@@ -61,15 +61,21 @@ return {
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 = ""
},
{