Move more stuff to wren_types.hpp

This commit is contained in:
King_DuckZ 2022-04-29 18:15:02 +02:00
parent edd5f27ab2
commit 7fcb89e459
3 changed files with 6 additions and 6 deletions

View file

@ -22,10 +22,6 @@
#include "error_type.hpp" #include "error_type.hpp"
namespace wren { namespace wren {
class VM;
typedef void(*foreign_method_t)(VM&);
class DefConfiguration : public Configuration { class DefConfiguration : public Configuration {
public: public:
static void write_fn (VM*, wren_string_t text); static void write_fn (VM*, wren_string_t text);

View file

@ -22,6 +22,7 @@
#if defined(WRENPP_WITH_NAME_GUESSING) #if defined(WRENPP_WITH_NAME_GUESSING)
# include "guess_class_name.hpp" # include "guess_class_name.hpp"
#endif #endif
#include "wren_types.hpp"
#include <string> #include <string>
#include <string_view> #include <string_view>
#include <vector> #include <vector>
@ -30,8 +31,6 @@
#include <utility> #include <utility>
namespace wren { namespace wren {
typedef std::tuple<const char*, const char*> ModuleAndName;
namespace detail { namespace detail {
template <typename T> struct GetTypeToRetType; template <typename T> struct GetTypeToRetType;
template <typename T> using GetTypeToRetType_t = typename GetTypeToRetType<T>::type; template <typename T> using GetTypeToRetType_t = typename GetTypeToRetType<T>::type;

View file

@ -16,7 +16,12 @@
*/ */
#include <string_view> #include <string_view>
#include <tuple>
namespace wren { namespace wren {
class VM;
typedef std::string_view wren_string_t; typedef std::string_view wren_string_t;
typedef void(*foreign_method_t)(VM&);
typedef std::tuple<const char*, const char*> ModuleAndName;
} //namespace wren } //namespace wren