move callable into internal namespace

master
Daniel Kolesa 2021-04-05 19:22:40 +02:00
parent 194d5f960b
commit 1a68dd1c25
3 changed files with 4 additions and 3 deletions

View File

@ -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"

View File

@ -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 */

View File

@ -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 &
>;