Browse Source

[spod] minor - still trying to get that doc error to go away

Cauê Waneck 11 years ago
parent
commit
5e4d4af6e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      std/sys/db/RecordMacros.hx

+ 5 - 1
std/sys/db/RecordMacros.hx

@@ -23,9 +23,9 @@ package sys.db;
 import sys.db.RecordInfos;
 import haxe.macro.Expr;
 import haxe.macro.Type.VarAccess;
-using haxe.macro.TypeTools;
 #if macro
 import haxe.macro.Context;
+using haxe.macro.TypeTools;
 #end
 
 private typedef SqlFunction = {
@@ -202,7 +202,11 @@ class RecordMacros {
 			case "Bool": DBool;
 			case _ if (!a.get().meta.has(':coreType')):
 				var a = a.get();
+#if macro
 				makeType(a.type.applyTypeParameters(a.params, p));
+#else
+				makeType(a.type);
+#end
 			default: throw "Unsupported Record Type " + name;
 			}
 		case TEnum(e, _):