Skip to content

Commit

Permalink
Add uv_constants.h that I forgot to push
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Jan 9, 2013
1 parent 14e1962 commit 5d49a52
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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.