#ifndef handle_h
#define handle_h

#include "../../config/config.h"

#if SIZEOF_VOID_P > 4
# define handle_to_jlong(x) ((jlong)(x))
# define jlong_to_handle(x) ((void *)(x))
#else
# define handle_to_jlong(x) ((jlong)(jint)(x))
# define jlong_to_handle(x) ((void *)(jint)(x))
#endif

#endif
