summaryrefslogtreecommitdiff
path: root/console/console.cpp
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-07-31 20:19:24 -0400
committera1xd <[email protected]>2020-07-31 20:19:24 -0400
commit66a4043a9ecb1990878bea230f213708c7fdd3da (patch)
treee0bcad437a3170f391fc74fe723be6abaf41cd89 /console/console.cpp
parentadd read (diff)
downloadrawaccel-66a4043a9ecb1990878bea230f213708c7fdd3da.tar.xz
rawaccel-66a4043a9ecb1990878bea230f213708c7fdd3da.zip
move write function into common io header
Diffstat (limited to 'console/console.cpp')
-rw-r--r--console/console.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/console/console.cpp b/console/console.cpp
index 549cb68..00dc481 100644
--- a/console/console.cpp
+++ b/console/console.cpp
@@ -1,14 +1,13 @@
#include <iostream>
-#define NOMINMAX
-#include <Windows.h>
-
#include <rawaccel-userspace.hpp>
-#include "console_write.hpp"
+#include <rawaccel-io.hpp>
+
+namespace ra = rawaccel;
int main(int argc, char** argv) {
try {
- write(ra::parse(argc, argv));
+ ra::write(ra::parse(argc, argv));
}
catch (std::domain_error e) {
std::cerr << e.what() << '\n';