Merge branch 'develop' of github.com:ChaiScript/ChaiScript into develop
This commit is contained in:
@@ -232,7 +232,7 @@ namespace chaiscript
|
|||||||
protected:
|
protected:
|
||||||
virtual Boxed_Value do_call(const std::vector<Boxed_Value> ¶ms, const Type_Conversions &t_conversions) const CHAISCRIPT_OVERRIDE
|
virtual Boxed_Value do_call(const std::vector<Boxed_Value> ¶ms, const Type_Conversions &t_conversions) const CHAISCRIPT_OVERRIDE
|
||||||
{
|
{
|
||||||
auto bv = var(Dynamic_Object(m_type_name));
|
auto bv = Boxed_Value(Dynamic_Object(m_type_name), true);
|
||||||
std::vector<Boxed_Value> new_params{bv};
|
std::vector<Boxed_Value> new_params{bv};
|
||||||
new_params.insert(new_params.end(), params.begin(), params.end());
|
new_params.insert(new_params.end(), params.begin(), params.end());
|
||||||
|
|
||||||
|
@@ -36,7 +36,9 @@
|
|||||||
#else
|
#else
|
||||||
#ifdef CHAISCRIPT_WINDOWS
|
#ifdef CHAISCRIPT_WINDOWS
|
||||||
#define VC_EXTRA_LEAN
|
#define VC_EXTRA_LEAN
|
||||||
|
#if !defined(WIN32_LEAN_AND_MEAN)
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@@ -436,6 +436,7 @@ namespace chaiscript
|
|||||||
else if (this->children[1]->text == ":=") {
|
else if (this->children[1]->text == ":=") {
|
||||||
if (lhs.is_undef() || Boxed_Value::type_match(lhs, rhs)) {
|
if (lhs.is_undef() || Boxed_Value::type_match(lhs, rhs)) {
|
||||||
lhs.assign(rhs);
|
lhs.assign(rhs);
|
||||||
|
lhs.reset_return_value();
|
||||||
} else {
|
} else {
|
||||||
throw exception::eval_error("Mismatched types in equation");
|
throw exception::eval_error("Mismatched types in equation");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user