You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. #library "ZMEMORY"
  2. #include "zcommon.acs"
  3. #libdefine nullptr 0
  4. //#define nullptr 0
  5. #define malloc_allocated 0
  6. #define malloc_size 1
  7. #define malloc_next_header 2
  8. #define malloc_prev_header 3
  9. #define malloc_num_header_properties 4
  10. #define p_malloc_init_flag_location 0
  11. #define p_malloc_first_header_location 1
  12. global int 63:gmemory[];
  13. //[Z] The reason I do it like this is because whoever made the acc is insane.
  14. #define gnullptr 0
  15. #define gmalloc_allocated 0
  16. #define gmalloc_size 1
  17. #define gmalloc_next_header 2
  18. #define gmalloc_prev_header 3
  19. #define gmalloc_num_header_properties 4
  20. #define gp_malloc_init_flag_location 0
  21. #define gp_malloc_first_header_location 1
  22. function int gmalloc (int size) {return 0;}
  23. function int gfree (int p_ptr) {return 0;}
  24. world int 255:wmemory[];
  25. //[Z] The reason I do it like this is because whoever made the acc is insane.
  26. #define wnullptr 0
  27. #define wmalloc_allocated 0
  28. #define wmalloc_size 1
  29. #define wmalloc_next_header 2
  30. #define wmalloc_prev_header 3
  31. #define wmalloc_num_header_properties 4
  32. #define wp_malloc_init_flag_location 0
  33. #define wp_malloc_first_header_location 1
  34. function int wmalloc (int size) {return 0;}
  35. function int wfree (int p_ptr) {return 0;}