limit dv::value templated constructors & refactor
This commit is contained in:
@@ -160,7 +160,7 @@ vec2supplier scripting::create_vec2_supplier(
|
||||
};
|
||||
}
|
||||
|
||||
dv::to_string_func scripting::create_tostring(
|
||||
value_to_string_func scripting::create_tostring(
|
||||
const scriptenv& env, const std::string& src, const std::string& file
|
||||
) {
|
||||
auto L = lua::get_main_thread();
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
namespace scripting {
|
||||
using common_func = std::function<dv::value(const std::vector<dv::value>&)>;
|
||||
using value_to_string_func = std::function<std::string(const dv::value&)>;
|
||||
|
||||
runnable create_runnable(
|
||||
const scriptenv& env,
|
||||
@@ -70,7 +71,7 @@ namespace scripting {
|
||||
const std::string& file = "<string>"
|
||||
);
|
||||
|
||||
dv::to_string_func create_tostring(
|
||||
value_to_string_func create_tostring(
|
||||
const scriptenv& env,
|
||||
const std::string& src,
|
||||
const std::string& file = "<string>"
|
||||
|
||||
Reference in New Issue
Block a user