Created
December 17, 2010 07:25
-
-
Save volh/744609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CAMLprim value mlzmq_version(value unit) | |
{ | |
CAMLparam1(unit); | |
int major, minor, patch; | |
zmq_version(&major, &minor, &patch); | |
CAMLlocal1( result ); | |
result = caml_alloc(3, 0); | |
Store_field( result, 0, Val_int major ); | |
Store_field( result, 1, Val_int minor ); | |
Store_field( result, 2, Val_int patch ); | |
CAMLreturn( result ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment