gtkradiant/tools/urt/libs/gtkutil/pointer.h

18 lines
314 B
C++

#if !defined( INCLUDED_GTKUTIL_POINTER_H )
#define INCLUDED_GTKUTIL_POINTER_H
typedef int gint;
typedef void* gpointer;
#include <cstddef>
inline gint gpointer_to_int( gpointer p ){
return gint( std::size_t( p ) );
}
inline gpointer gint_to_pointer( gint i ){
return gpointer( std::size_t( i ) );
}
#endif