summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-02-06 08:44:18 +0100
committerAraq <rumpf_a@web.de>2012-02-06 08:44:18 +0100
commit161f6f7229e6003c8ee512150793b2f9b5a2f6f3 (patch)
treedfba73f1e3830dfabbc58283714b1c18f15e4e9d /lib
parentfd4836a5d6e4e2c7b37adc6efdea325b76b9d59f (diff)
downloadNim-161f6f7229e6003c8ee512150793b2f9b5a2f6f3.tar.gz
further steps for closure support
Diffstat (limited to 'lib')
-rwxr-xr-xlib/nimbase.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h
index f52185800..a114430ab 100755
--- a/lib/nimbase.h
+++ b/lib/nimbase.h
@@ -132,11 +132,6 @@ __clang__
 /* specify no calling convention */
 #define N_NOCONV_PTR(rettype, name) rettype (*name)
 
-#define N_CLOSURE(rettype, name) rettype name
-/* specify no calling convention */
-#define N_CLOSURE_PTR(rettype, name) rettype (*name)
-
-
 #if defined(__GNUC__) || defined(__ICC__)
 #  define N_NOINLINE(rettype, name) rettype __attribute__((noinline)) name
 #elif defined(_MSC_VER)
@@ -157,6 +152,9 @@ __clang__
 #  define N_NIMCALL_PTR(rettype, name) rettype (*name)
 #endif
 
+#define N_CLOSURE(rettype, name) N_NIMCALL(rettype, name)
+#define N_CLOSURE_PTR(rettype, name) N_NIMCALL_PTR(rettype, name)
+
 /* ----------------------------------------------------------------------- */
 
 /* from float_cast.h: */