Skip to content

Instantly share code, notes, and snippets.

View bamtang-dev's full-sized avatar
💭
I may be slow to respond.

Github bamtang-dev

💭
I may be slow to respond.
  • Lima, Peru
View GitHub Profile
import haxe.macro.Expr;
import haxe.macro.Context;
class FTW {
public static function build() {
return haxe.macro.Context.getBuildFields().map(transformField);
}
static function transformField(field:Field) {
switch (field.kind) {