Teensy 4.1 core updated for C++20
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.

18 lines
352B

  1. /*
  2. * This file is a part of SMalloc.
  3. * SMalloc is MIT licensed.
  4. * Copyright (c) 2017 Andrey Rys.
  5. */
  6. #include "smalloc_i.h"
  7. void *sm_realloc_move_pool(struct smalloc_pool *spool, void *p, size_t n)
  8. {
  9. return sm_realloc_pool_i(spool, p, n, 1);
  10. }
  11. void *sm_realloc_move(void *p, size_t n)
  12. {
  13. return sm_realloc_pool_i(&smalloc_curr_pool, p, n, 1);
  14. }