summary refs log tree commit diff stats
path: root/lib/core/macros.nim
diff options
context:
space:
mode:
authorJames Osborn <osborn@alcf.anl.gov>2016-05-04 00:21:22 -0500
committerJames Osborn <osborn@alcf.anl.gov>2016-05-04 00:24:44 -0500
commit0356f53b5619782c650f56a6842cbaf91a82137d (patch)
treec005b1330f99920e8bd219bf288e66f5aba8a0c7 /lib/core/macros.nim
parentc89397f821f1269b6cf7ab99b376c147bd3ad442 (diff)
downloadNim-0356f53b5619782c650f56a6842cbaf91a82137d.tar.gz
getTypeInst and getTypeImpl mostly working now and added test
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r--lib/core/macros.nim6
1 files changed, 6 insertions, 0 deletions
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.}