mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-02 17:39:03 +08:00
Add modules support (#1015)
Add experimental C++20 module suppport. Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
18
src/ftxui/util/autoreset.cppm
Normal file
18
src/ftxui/util/autoreset.cppm
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* @file autoreset.cppm
|
||||
* @brief Module file for the AutoReset class of the Util module
|
||||
*/
|
||||
|
||||
module;
|
||||
|
||||
#include <ftxui/util/autoreset.hpp>
|
||||
|
||||
export module ftxui.util.autoreset;
|
||||
|
||||
/**
|
||||
* @namespace ftxui
|
||||
* @brief The FTXUI ftxui:: namespace
|
||||
*/
|
||||
export namespace ftxui {
|
||||
using ftxui::AutoReset;
|
||||
}
|
22
src/ftxui/util/ref.cppm
Normal file
22
src/ftxui/util/ref.cppm
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @file ref.cppm
|
||||
* @brief Module file for the Ref classes of the Util module
|
||||
*/
|
||||
|
||||
module;
|
||||
|
||||
#include <ftxui/util/ref.hpp>
|
||||
|
||||
export module ftxui.util.ref;
|
||||
|
||||
/**
|
||||
* @namespace ftxui
|
||||
* @brief The FTXUI ftxui:: namespace
|
||||
*/
|
||||
export namespace ftxui {
|
||||
using ftxui::ConstRef;
|
||||
using ftxui::Ref;
|
||||
using ftxui::StringRef;
|
||||
using ftxui::ConstStringRef;
|
||||
using ftxui::ConstStringListRef;
|
||||
}
|
Reference in New Issue
Block a user