1.0.0 Alpha Release #59

Merged
netkas merged 213 commits from v1.0.0_alpha into master 2023-01-29 23:27:58 +00:00
Showing only changes of commit 272c3b9d94 - Show all commits

View file

@ -262,11 +262,26 @@
$options = []; $options = [];
foreach($package->Header->Options as $name => $value) foreach($package->Header->Options as $name => $value)
{ {
Console::outDebug(sprintf('compiling options const %s (%s)', $name, implode(', ', array_keys($refs)))); if(is_array($value))
$options[$name] = self::compileConstants($value, $refs); {
} $options[$name] = [];
$package->Header->Options = $options; foreach($value as $key => $val)
{
if(!is_string($val))
continue;
Console::outDebug(sprintf('compiling option %s.%s (%s)', $name, $key, implode(', ', array_keys($refs))));
$options[$name][$key] = self::compileConstants($val, $refs);
}
}
else
{
Console::outDebug(sprintf('compiling option %s (%s)', $name, implode(', ', array_keys($refs))));
$options[$name] = self::compileConstants((string)$value, $refs);
}
}
$package->Header->Options = $options;
$package->Header->RuntimeConstants = $compiled_constants; $package->Header->RuntimeConstants = $compiled_constants;
} }