SHARE
TWEET

Untitled

a guest Apr 25th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "lalloc.h"
  2.  
  3. static tgc_t gc;
  4.  
  5. void gc_start(void* stk) {
  6.     tgc_start(&gc, stk);
  7. }
  8.  
  9. void gc_run() {
  10.     tgc_run(&gc);
  11. }
  12.  
  13. void gc_stop() {
  14.     tgc_stop(&gc);
  15. }
  16.  
  17. void* gc_alloc(size_t size) {
  18.     return tgc_alloc(&gc, size);
  19. }
  20.  
  21. void* gc_realloc(void* ptr, size_t size) {
  22.     return tgc_realloc(&gc, ptr, size);
  23. }
  24.  
  25. void gc_free(void* ptr) {
  26.     tgc_free(&gc, ptr);
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top