add getResources to haxe.macro.Context
Merge pull request #2571 from frabbit/get_resources

add getResources to haxe.macro.Context