Permalink
Browse files

Add uv_constants.h that I forgot to push

  • Loading branch information...
1 parent 14e1962 commit 5d49a52161ab495250da1e28f3b53db8b7b01aca @Keno committed Jan 9, 2013
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/uv_constants.h
View
7 src/uv_constants.h
@@ -0,0 +1,7 @@
+#include "uv.h"
+#define XX(uc,lc) :UV_##uc,
+const UV_UNKNOWN_HANDLE = 0
+handles = [UV_HANDLE_TYPE_MAP(XX) :UV_FILE, :UV_HANDLE_TYPE_MAX, :UV_RAW_FD, :UV_RAW_HANDLE]
+for i=1:(length(handles))
+@eval const $(handles[i]) = $i
+end

0 comments on commit 5d49a52

Please sign in to comment.