Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created May 26, 2013 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/69f9da010126eb4aebd4 to your computer and use it in GitHub Desktop.
Save bnoordhuis/69f9da010126eb4aebd4 to your computer and use it in GitHub Desktop.
#include <stdio.h>
//#undef __cplusplus // uncomment to check C struct sizes
#include "uv.h"
int main()
{
#define V(_, type) printf("%zu\tuv_" #type "_t\n", sizeof(uv_ ## type ## _t));
UV_HANDLE_TYPE_MAP(V)
UV_REQ_TYPE_MAP(V)
#undef V
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment