aboutsummaryrefslogtreecommitdiff
path: root/lib/arch.h
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-02-28 20:20:12 +0100
committerjohannst <johannes.stoelp@gmail.com>2021-02-28 20:20:12 +0100
commit6e182c588ec06f0db626a5ee7247b9b1688b10b6 (patch)
tree2c2d5e7dd92abe4ff1722996f3da561ba3ef3447 /lib/arch.h
parent9ba2177d93e3aab498598cb7058bdb64798a2f29 (diff)
downloadmatcha-threads-6e182c588ec06f0db626a5ee7247b9b1688b10b6.tar.gz
matcha-threads-6e182c588ec06f0db626a5ee7247b9b1688b10b6.zip
pull out api.h into arch and add documentation
Diffstat (limited to 'lib/arch.h')
-rw-r--r--lib/arch.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/arch.h b/lib/arch.h
index 524d401..a02fdba 100644
--- a/lib/arch.h
+++ b/lib/arch.h
@@ -7,11 +7,13 @@ static_assert(false, "Matcha Threads only supported on Linux!");
#endif
#if defined(__x86_64__) || defined(__amd64__)
-# include "arch/x86_64/api.h"
+// fall-through: x86_64 support
#elif defined(__aarch64__)
-# include "arch/arm64/api.h"
+// fall-through: arm64 support
#elif defined(__arm__)
-# include "arch/arm/api.h"
+// fall-through: armv7 support
#else
static_assert(false, "Unsupported architecture!");
#endif
+
+#include "arch/api.h"