aboutsummaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cpu.h8
-rw-r--r--inc/log.h10
2 files changed, 18 insertions, 0 deletions
diff --git a/inc/cpu.h b/inc/cpu.h
new file mode 100644
index 0000000..fcbb57f
--- /dev/null
+++ b/inc/cpu.h
@@ -0,0 +1,8 @@
+#ifndef CPU_H
+#define CPU_H
+
+int cpu_init(void);
+void cpu_run(void);
+void cpu_destroy(void);
+
+#endif
diff --git a/inc/log.h b/inc/log.h
new file mode 100644
index 0000000..ae55c17
--- /dev/null
+++ b/inc/log.h
@@ -0,0 +1,10 @@
+#ifndef LOG_H
+#define LOG_H
+
+void __logln(const char *func, const char *format, ...);
+void __errln(const char *func, const char *format, ...);
+
+#define logln(format, ...) __logln(__func__, format, ##__VA_ARGS__)
+#define errln(format, ...) __errln(__func__, format, ##__VA_ARGS__)
+
+#endif