Skip to content

Instantly share code, notes, and snippets.

@dpeek
Created February 4, 2013 00:14
Show Gist options
  • Save dpeek/4704328 to your computer and use it in GitHub Desktop.
Save dpeek/4704328 to your computer and use it in GitHub Desktop.
Macro getter
class Test
{
public static function main()
{
var test = new Test();
trace(test.style);
}
public function new()
{
}
public var style(get_style, null):Dynamic;
macro function get_style(ethis:Expr):Expr
{
return macro asdf;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment