Skip to content

Commit

Permalink
Simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
onehundredfeet committed Feb 11, 2023
1 parent ac14905 commit cbf3357
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
4 changes: 3 additions & 1 deletion haxelib.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"version" : "2.0.0",
"classPath": "lib/",
"releasenote" : "",
"dependencies": {"hvector": "git:https://github.com/onehundredfeet/hvector.git"}
"dependencies": {

}
}
21 changes: 11 additions & 10 deletions lib/idl/Module.hx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package idl;

#if hl
class Module extends idl.ModuleHL {}
#elseif (java || jvm)
class Module extends idl.ModuleJVM {}
#elseif eval

#else
#error "Unsupported target host"
#end
#if macro
class Module{
public static function build( opts : Options ) {
return switch(opts.target) {
case TargetHL: ModuleHL.build(opts);
case TargetJVM: ModuleJVM.build(opts);
default: throw 'Unrecognized target ${opts.target}';
}
}
}
#end

0 comments on commit cbf3357

Please sign in to comment.