limit dv::value templated constructors & refactor

This commit is contained in:
MihailRis
2024-09-19 04:22:57 +03:00
parent 827a09b1d0
commit 4ae141d982
4 changed files with 18 additions and 27 deletions
+1 -1
View File
@@ -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();
+2 -1
View File
@@ -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>"