diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:41:23 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-10-05 15:41:23 +0200 |
| commit | 8aa66a6c6c0d8984b7d2668c03bad5a3b29e3a33 (patch) | |
| tree | d7d985151b5bcd6687aead3547bdfbdb0600a8c6 /include | |
| parent | b278d242d03ba614779243ec9e9495fc95abea3d (diff) | |
memops wrapper, remove unused includes
Diffstat (limited to 'include')
| -rw-r--r-- | include/memops.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/memops.hpp b/include/memops.hpp new file mode 100644 index 0000000..a3d9fbd --- /dev/null +++ b/include/memops.hpp @@ -0,0 +1,28 @@ +/* +* Copyright (c) 2025 Aldrik Ramaekers <aldrik.ramaekers@gmail.com> +* +* Permission to use, copy, modify, and/or distribute this software for any +* purpose with or without fee is hereby granted, provided that the above +* copyright notice and this permission notice appear in all copies. +* +* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +*/ + +#pragma once + +#include "config.hpp" + +namespace memops { + + void* alloc(size_t size); + void* stack_alloc(size_t size); + void unalloc(void *ptr); + void* copy(void* destination, const void* source, size_t num); + +}
\ No newline at end of file |
