diff options
author | dzwdz | 2021-08-03 17:38:12 +0200 |
---|---|---|
committer | dzwdz | 2021-08-03 17:38:12 +0200 |
commit | b2e43dd96f385e275c08ad531cd1c6bb65e2011f (patch) | |
tree | 5bff925556326a6745dc5eb2c76ad11e3223d05b /src/kernel/util.h | |
parent | 173823ae1c180d40916dc3ca25e7a2bf2be3b1cd (diff) |
put the NUM2STR macro in util.h
i'll use it outside of panic.h
Diffstat (limited to 'src/kernel/util.h')
-rw-r--r-- | src/kernel/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/util.h b/src/kernel/util.h index 4bd7c31..39301d6 100644 --- a/src/kernel/util.h +++ b/src/kernel/util.h @@ -1,5 +1,8 @@ #pragma once #include <stddef.h> +#define __NUM2STR(x) #x +#define NUM2STR(x) __NUM2STR(x) + void *memcpy(void *dest, const void *src, size_t n); void *memset(void *s, int c, size_t n); |