Shorten macro
This commit is contained in:
@@ -468,25 +468,11 @@ class System {
|
||||
|
||||
}
|
||||
|
||||
Sys.println (signatureString);
|
||||
|
||||
case TInst (t, _):
|
||||
|
||||
switch (t.get ().name) {
|
||||
|
||||
case "String":
|
||||
case TInst (_.get () => { pack: [], name: "String" }, _):
|
||||
|
||||
signatureString = ExprTools.getValue (signature);
|
||||
|
||||
default:
|
||||
|
||||
}
|
||||
|
||||
case TAbstract (t, _):
|
||||
|
||||
switch (t.get ().name) {
|
||||
|
||||
case "Int":
|
||||
case TAbstract (_.get () => { pack: [], name: "Int" }, _):
|
||||
|
||||
var typeString = "Dynamic";
|
||||
var args:Int = ExprTools.getValue (signature);
|
||||
@@ -503,10 +489,6 @@ class System {
|
||||
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
}
|
||||
|
||||
if (signatureString == null || signatureString == "") {
|
||||
|
||||
throw "Invalid function signature";
|
||||
|
||||
Reference in New Issue
Block a user