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