From 0356f53b5619782c650f56a6842cbaf91a82137d Mon Sep 17 00:00:00 2001 From: James Osborn Date: Wed, 4 May 2016 00:21:22 -0500 Subject: getTypeInst and getTypeImpl mostly working now and added test --- lib/core/macros.nim | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 76fdea9b0..45fac88a2 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -203,6 +203,12 @@ proc getTypeInst*(n: NimNode): NimNode {.magic: "NGetType", noSideEffect.} proc getTypeInst*(n: typedesc): NimNode {.magic: "NGetType", noSideEffect.} ## Like getType except it includes generic parameters for a specific instance +proc getTypeImpl*(n: NimNode): NimNode {.magic: "NGetType", noSideEffect.} + ## Like getType except it includes generic parameters for the implementation + +proc getTypeImpl*(n: typedesc): NimNode {.magic: "NGetType", noSideEffect.} + ## Like getType except it includes generic parameters for the implementation + proc strVal*(n: NimNode): string {.magic: "NStrVal", noSideEffect.} proc `intVal=`*(n: NimNode, val: BiggestInt) {.magic: "NSetIntVal", noSideEffect.} -- cgit 1.4.1-2-gfad0