mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
limit dv::value templated constructors & refactor
This commit is contained in:
parent
827a09b1d0
commit
4ae141d982
4 changed files with 18 additions and 27 deletions
|
|
@ -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>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue