I had code like this working with Haxe 3:

```
macro public static function get(key:String)
{
    return Context.makeExpr(Context.definedValue(key), Context.currentPos());
}

```

However, after migrating to Haxe 4 this fails to compile with error:

> 
> Uncaught exception macro-in-macro
> 
> 
> 

How should I go about migrating this function to Haxe 4? Is there a better way to access build flags in order to avoid this issue?