diff options
author | Li Jin <dragon-fly@qq.com> | 2020-03-25 09:45:37 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-03-25 09:45:37 +0800 |
commit | ab0d02992334300560a677e8c8e1a7e0fc1874a7 (patch) | |
tree | 857e1d46748ad92a07217a7ad6b2e32443529527 /src/moonp.cpp | |
parent | 1218119c48e971f61cddb549addf8cd3d221ab4e (diff) | |
download | yuescript-ab0d02992334300560a677e8c8e1a7e0fc1874a7.tar.gz yuescript-ab0d02992334300560a677e8c8e1a7e0fc1874a7.tar.bz2 yuescript-ab0d02992334300560a677e8c8e1a7e0fc1874a7.zip |
Add c++17 filesystem compatible lib.
Diffstat (limited to '')
-rw-r--r-- | src/moonp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/moonp.cpp b/src/moonp.cpp index 4128f10..fd9548a 100644 --- a/src/moonp.cpp +++ b/src/moonp.cpp | |||
@@ -19,8 +19,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |||
19 | #include <string_view> | 19 | #include <string_view> |
20 | #include <memory> | 20 | #include <memory> |
21 | using namespace std::string_view_literals; | 21 | using namespace std::string_view_literals; |
22 | #include <filesystem> | 22 | #include "ghc/fs_std.hpp" |
23 | namespace fs = std::filesystem; | ||
24 | 23 | ||
25 | #define _DEFER(code,line) std::shared_ptr<void> _defer_##line(nullptr, [&](auto){code;}) | 24 | #define _DEFER(code,line) std::shared_ptr<void> _defer_##line(nullptr, [&](auto){code;}) |
26 | #define DEFER(code) _DEFER(code,__LINE__) | 25 | #define DEFER(code) _DEFER(code,__LINE__) |