mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 20:10:56 +00:00
20 lines
324 B
C++
20 lines
324 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
|