|
@@ -24,6 +24,8 @@ class Internal {
|
|
|
|
|
|
static var _classes = _prefix + "classes";
|
|
|
|
|
|
+ static var _dict = "__dict__";
|
|
|
+
|
|
|
static function _getPrefixed (x:Expr):Expr {
|
|
|
return switch (x.expr) {
|
|
|
case EConst(CString(x)): macro @:pos(Context.currentPos()) $v{_prefix + x};
|
|
@@ -191,6 +193,10 @@ class Internal {
|
|
|
return fieldWithPos(o, _constructs);
|
|
|
}
|
|
|
|
|
|
+ macro public static function fieldDict (o:Expr):Expr {
|
|
|
+ return fieldWithPos(o, _dict);
|
|
|
+ }
|
|
|
+
|
|
|
macro public static function fieldEmptyInit (o:Expr):Expr {
|
|
|
return fieldWithPos(o, _emptyInit);
|
|
|
}
|