File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,29 @@ if defined ALLOCATOR_SIMPLE
3232_malloc := __simple_malloc
3333_free := __simple_free
3434_realloc := __simple_realloc
35+ extern __simple_free
36+ extern __simple_malloc
37+ extern __simple_realloc
3538
36- end if
37-
38- if defined ALLOCATOR_STANDARD
39+ else if defined ALLOCATOR_STANDARD
3940
4041_malloc := __standard_malloc
4142_free := __standard_free
4243_realloc := __standard_realloc
43-
44- end if
45-
46- extern __simple_free
47- extern __simple_malloc
48- extern __simple_realloc
4944 extern __standard_malloc
5045 extern __standard_free
5146 extern __standard_realloc
47+
48+ else ; custom functions provided by the program
49+
50+ _malloc := __custom_malloc
51+ _free := __custom_free
52+ _realloc := __custom_realloc
53+ extern __custom_malloc
54+ extern __custom_free
55+ extern __custom_realloc
56+
57+ end if
58+
5259 extern __imulu
5360 extern _memset
You can’t perform that action at this time.
0 commit comments