#pragma once // ReSharper disable once CppUnusedIncludeDirective #include "global_macros.h" #include #include #include #include namespace cru { enum class FlowControl { Continue, Break }; using String = folly::basic_fbstring; template using Function = folly::Function; template using Action = Function; template using FlowControlAction = Function; template using Vector = folly::fbvector; class Object { public: Object() = default; Object(const Object&) = default; Object& operator = (const Object&) = default; Object(Object&&) = default; Object& operator = (Object&&) = default; virtual ~Object() = default; }; struct Interface { virtual ~Interface() = default; }; [[noreturn]] inline void UnreachableCode() { throw std::logic_error("Unreachable code."); } }