Displaying 6 results from an estimated 6 matches for "swig_convertptr".
2005 Oct 09
1
[Fwd: Re: [Swig] typemap + default argument bug?]
...al Message --------
Subject: Re: [Swig] typemap + default argument bug?
Date: Tue, 27 Sep 2005 15:57:52 -0400 (EDT)
From: Josh Cherry <jcherry@ncbi.nlm.nih.gov>
To: Charles@Schwieters.org
CC: swig@cs.uchicago.edu
On Tue, 27 Sep 2005 Charles@Schwieters.org wrote:
> _wrap_new_ClassB calls SWIG_ConvertPtr to convert the instanceName
> argument to a p_String, thereby ignoring the typemap.
>
> Previous versions of swig do not seem to exhibit this behavior (I
> checked 1.3.22 and 1.3.24). They seem to treat the instanceName
> argument as a PyObject* before calling stringTypemap.
>
>...
2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...t;<span class="cx"> wxEventType eventType)
</span><span class="cx"> {
</span><del>-
</del><span class="cx"> wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ;
</span><span class="cx"> SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1);
</span><span class="cx">
</span><span class="lines">@@ -445,7 +462,7 @@
</span><span class="cx"> static void internal_connect(VALUE self, int firstId, int lastId,
</span...
2007 Jun 23
0
[1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
...amp;nbsp         wxEventType eventType)
</ins><span class="cx"> {
</span><span class="cx"> wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ;
</span><span class="cx"> SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1);
</span><span class="lines">@@ -67,11 +89,7 @@
</span><span class="cx"> wxObject* userData = new wxRbCallback(func);
</span><span class="cx"> wxObjectEventFunction fun...
2008 Jun 12
4
Background thread - entension code - switch contexts
Hi,
I am using wxRuby 1.9.7 and Ruby 1.8.6. I have built an extension in C++
and used swig to load it into Ruby interpreter, which works great. The
extension is an often long executing algorithm, and I''ve noticed that if
I fork a new Ruby thread in button clicked event, and in this thread run
the algorithm the application freezes for the time of execution. I have
looked through the
2006 Dec 31
0
[816] trunk/wxruby2: Added AcceleratorTable and AcceleratorTable classes, plus documentation
...!= T_ARRAY))
+ {
+ $1 = 0;
+ $2 = NULL;
+ }
+ else
+ {
+ wxAcceleratorEntry *wx_acc_ent;
+ arr = new wxAcceleratorEntry[RARRAY($input)->len];
+ for (int i = 0; i < RARRAY($input)->len; i++)
+ {
+         SWIG_ConvertPtr(rb_ary_entry($input,i), (void **) &wx_acc_ent, SWIGTYPE_p_wxAcceleratorEntry, 1);
+         if (wx_acc_ent == NULL)
+            &...
2007 May 29
0
[1035] trunk/wxruby2/swig/classes/EvtHandler.i: Removed a heap of redundant stuff that''s been #if 0''d for a while
...;
</span><span class="cx">
</span><del>-#if 0
-%{
- static VALUE callbacks = Qnil;
-%}
-
-%{
-static void internal_connect(VALUE self, int firstId, int lastId,
- wxEventType eventType)
-{
-
- wxEvtHandler *cppSelf = (wxEvtHandler *) 0 ;
- SWIG_ConvertPtr(self, (void **) &cppSelf, SWIGTYPE_p_wxEvtHandler, 1);
-
- VALUE func = rb_funcall(rb_cProc, rb_intern("new"), 0);
- rb_global_variable(&callbacks);
- if(callbacks == Qnil)
- callbacks = rb_ary_new();
- rb_ary_push(callbacks, func);
-
- wxObject* userData = n...