1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-08-12 11:29:20 +00:00

Preprocesor should use current options

This commit is contained in:
Karol Stasiak 2018-12-14 22:49:26 +01:00
parent 65f5c552b4
commit a73e1eae1e

View File

@ -41,7 +41,7 @@ object Preprocessor {
def evalParam(param: String, pos: Some[Position]): Long = {
new PreprocessorParser(options).expression.parse(param) match {
case Success(q, _) =>
val value = q.apply(platform.features).getOrElse(0L)
val value = q.apply(options.features).getOrElse(0L)
// log.trace(param + " ===> " + value)
value
case Failure(_, _, _) =>