Commit b7fd8888 authored by twanvl's avatar twanvl

Fixed some bugs from last commit (typo in SCRIPT_PARAM_DEFAULT_C definition)

parent 49a4cff3
...@@ -137,7 +137,7 @@ inline Type from_script(const ScriptValueP& v, Variable var) { ...@@ -137,7 +137,7 @@ inline Type from_script(const ScriptValueP& v, Variable var) {
ScriptValueP name##_ = ctx.getVariableOpt(str); \ ScriptValueP name##_ = ctx.getVariableOpt(str); \
Type name = name##_ ? from_script<Type>(name##_, str) : def Type name = name##_ ? from_script<Type>(name##_, str) : def
#define SCRIPT_PARAM_DEFAULT_C(Type, name, def) \ #define SCRIPT_PARAM_DEFAULT_C(Type, name, def) \
SCRIPT_PARAM_DEFAULT_N(Type, SCRIPT_VAR_ ## name, name, name) SCRIPT_PARAM_DEFAULT_N(Type, SCRIPT_VAR_ ## name, name, def)
// ----------------------------------------------------------------------------- : Rules // ----------------------------------------------------------------------------- : Rules
......
...@@ -55,6 +55,7 @@ void init_script_variables() { ...@@ -55,6 +55,7 @@ void init_script_variables() {
Var(in); Var(in);
Var(match); Var(match);
Var(replace); Var(replace);
VarN(in_context,_("in context"));
Var(order); Var(order);
Var(filter); Var(filter);
Var(choice); Var(choice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment