diff --git a/hscript/Parser.hx b/hscript/Parser.hx index f3cedf1..79875c4 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -64,7 +64,7 @@ class Parser { /** allows to check for #if / #else in code **/ - public var preprocesorValues : Map = new Map(); + public var preprocessorValues : Map = new Map(); /** activate JSON compatiblity @@ -1980,7 +1980,7 @@ class Parser { } function preprocValue( id : String ) : Dynamic { - return preprocesorValues.get(id); + return preprocessorValues.get(id); } var preprocStack : Array; @@ -2167,6 +2167,10 @@ class Parser { case TPrepro(id): "#" + id; } } + + public var preprocesorValues(get, set) : Map; + inline function get_preprocesorValues() return preprocessorValues; + inline function set_preprocesorValues(v) return preprocessorValues = v; } @:structInit