move callable into internal namespace
parent
194d5f960b
commit
1a68dd1c25
|
@ -4,7 +4,6 @@
|
||||||
#include "cubescript_conf.hh"
|
#include "cubescript_conf.hh"
|
||||||
|
|
||||||
#include "cubescript/platform.hh"
|
#include "cubescript/platform.hh"
|
||||||
#include "cubescript/callable.hh"
|
|
||||||
#include "cubescript/error.hh"
|
#include "cubescript/error.hh"
|
||||||
#include "cubescript/value.hh"
|
#include "cubescript/value.hh"
|
||||||
#include "cubescript/ident.hh"
|
#include "cubescript/ident.hh"
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
namespace cubescript {
|
namespace cubescript {
|
||||||
|
namespace internal {
|
||||||
|
|
||||||
template<typename R, typename ...A>
|
template<typename R, typename ...A>
|
||||||
struct callable {
|
struct callable {
|
||||||
|
@ -205,6 +206,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} /* namespace internal */
|
||||||
} /* namespace cubescript */
|
} /* namespace cubescript */
|
||||||
|
|
||||||
#endif /* LIBCUBESCRIPT_CUBESCRIPT_CALLABLE_HH */
|
#endif /* LIBCUBESCRIPT_CUBESCRIPT_CALLABLE_HH */
|
||||||
|
|
|
@ -13,8 +13,8 @@ namespace cubescript {
|
||||||
|
|
||||||
using alloc_func = void *(*)(void *, void *, size_t, size_t);
|
using alloc_func = void *(*)(void *, void *, size_t, size_t);
|
||||||
|
|
||||||
using hook_func = callable<void, struct state &>;
|
using hook_func = internal::callable<void, struct state &>;
|
||||||
using command_func = callable<
|
using command_func = internal::callable<
|
||||||
void, struct state &, std::span<struct any_value>, struct any_value &
|
void, struct state &, std::span<struct any_value>, struct any_value &
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue