Disallowing duplicating def macro arguments
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
59a0b424fa
commit
1f3ab806bd
|
@ -1565,6 +1565,8 @@ class JSM_ArgsParser
|
||||||
{
|
{
|
||||||
$this->skip_whitespace();
|
$this->skip_whitespace();
|
||||||
$value = $this->parse_arg_value();
|
$value = $this->parse_arg_value();
|
||||||
|
if(isset($out[$name]))
|
||||||
|
throw new Exception("Argument '{$name}' is already defined in def macro");
|
||||||
$out[$name] = $value;
|
$out[$name] = $value;
|
||||||
$this->skip_whitespace();
|
$this->skip_whitespace();
|
||||||
$ch = $this->next();
|
$ch = $this->next();
|
||||||
|
|
Loading…
Reference in New Issue