Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

implement get integer in Ptr

  • Loading branch information...
commit 429e7952b3f6de0bb9f90df89463fa33c09d73da 1 parent 88b98ae
NotFound authored
Showing with 6 additions and 0 deletions.
  1. +5 −0 winxedxx_ptr.cxx
  2. +1 −0  winxedxx_ptr.h
5 winxedxx_ptr.cxx
View
@@ -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;
1  winxedxx_ptr.h
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.