diff options
author | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-07-13 20:07:07 +0200 |
commit | dd78bb04876f66e967773d6dd03ea9534fe43cc2 (patch) | |
tree | 4d3080abf0cbcca7c058cba5cad2ed71e5d5e1e5 /kern/macros.h | |
parent | 85292d947faabe8828810946c7a8067ef228d6fe (diff) |
Switch to initialization operations
Diffstat (limited to 'kern/macros.h')
-rw-r--r-- | kern/macros.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kern/macros.h b/kern/macros.h index 6259dcee..6b203e52 100644 --- a/kern/macros.h +++ b/kern/macros.h @@ -43,6 +43,16 @@ #define DECL_CONST(x, s) x #else /* __ASSEMBLER__ */ #define __DECL_CONST(x, s) x##s +void cga_putc(char c); + +static inline void +moo_print(const char *s) +{ + while (*s != '\0') { + cga_putc(*s); + s++; + } +} #define DECL_CONST(x, s) __DECL_CONST(x, s) #endif /* __ASSEMBLER__ */ |