diff options
author | crupest <crupest@outlook.com> | 2018-09-15 23:28:06 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-15 23:28:06 +0800 |
commit | 683419f2856d348436ca64cfd4b3abbfc73cda89 (patch) | |
tree | eed6f7b324ca2a4a6b7cdf7879233eb2eacedf2c /CruUI/base.h | |
parent | 8248001b2506a866b6be0e22af36f8399a595da2 (diff) | |
download | cru-683419f2856d348436ca64cfd4b3abbfc73cda89.tar.gz cru-683419f2856d348436ca64cfd4b3abbfc73cda89.tar.bz2 cru-683419f2856d348436ca64cfd4b3abbfc73cda89.zip |
...
Diffstat (limited to 'CruUI/base.h')
-rw-r--r-- | CruUI/base.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/CruUI/base.h b/CruUI/base.h index 861bf677..99b493b1 100644 --- a/CruUI/base.h +++ b/CruUI/base.h @@ -4,8 +4,14 @@ #include "global_macros.h" +#ifdef CRU_DEBUG +#include <string> +#include <vector> +#else #include <folly/String.h> #include <folly/FBVector.h> +#endif + #include <folly/Function.h> #include <stdexcept> @@ -19,7 +25,11 @@ namespace cru Break }; +#ifdef CRU_DEBUG + using String = std::wstring; +#else using String = folly::basic_fbstring<wchar_t>; +#endif template<typename FunctionType> using Function = folly::Function<FunctionType>; @@ -30,8 +40,13 @@ namespace cru template<typename... Args> using FlowControlAction = Function<FlowControl(Args...)>; +#ifdef CRU_DEBUG + template<typename T> + using Vector = std::vector<T>; +#else template<typename T> using Vector = folly::fbvector<T>; +#endif class Object { |