Permalink
Browse files

implement get integer in Ptr

  • Loading branch information...
1 parent 88b98ae commit 429e7952b3f6de0bb9f90df89463fa33c09d73da @NotFound committed Jun 12, 2012
Showing with 6 additions and 0 deletions.
  1. +5 −0 winxedxx_ptr.cxx
  2. +1 −0 winxedxx_ptr.h
View
5 winxedxx_ptr.cxx
@@ -18,6 +18,11 @@ WxxPtr::WxxPtr(void *ptr) : WxxDefault("Ptr"), p(ptr)
{
}
+int WxxPtr::get_integer()
+{
+ return p != 0;
+}
+
void * WxxPtr::get_pointer()
{
return p;
View
1 winxedxx_ptr.h
@@ -15,6 +15,7 @@ class WxxPtr : public WxxDefault
WxxPtr();
WxxPtr(void *ptr);
+ int get_integer();
void * get_pointer();
void set_pointer(void *ptr);
WxxObjectPtr call_method

0 comments on commit 429e795

Please sign in to comment.