Displaying 3 results from an estimated 3 matches for "t_none".
Did you mean:
f_none
2011 Aug 25
4
[PATCH 0/3] ruby: Fix event handler failure
...out of scope
and is garbage collected. (This is despite the fact we registered it
as a global root). When we invoke the callback later, rb_funcall
raises this exception:
wrong argument type Proc (expected Data)
I checked the type of the callback, and indeed it changes from T_DATA
(normal) to T_NONE (raises this exception).
My workaround simply checks that the type != T_NONE before calling.
Rich.
2007 Apr 13
0
[961] branches/wxruby2/wxwidgets_282/swig: Move wxDateTime typemap into shared file, map to core Time class instead
...$result = rb_funcall(cTime, rb_intern("local"), 6, y, mon, d, h, min, s);
+}
+
+// Need to have this to over-ride the default which does not work
+%typemap(typecheck) const wxDateTime& {
+        $1 = (TYPE($input) != T_NONE);
+}
</ins></span></pre></div>
<a id="brancheswxruby2wxwidgets_282swigtypemapi"></a>
<div class="modfile"><h4>Modified: branches/wxruby2/wxwidgets_282/swig/typemap.i (960 => 961)</h4>
<pre class="diff"><...
2007 Jun 25
0
[1072] trunk/wxruby2/swig/shared/datetime.i: Add typemap for DateTime::WeekDay; plug mem leak with wxDateTime arg
...default which does not work
</span><del>-%typemap(typecheck) const wxDateTime& {
</del><ins>+%typemap(typecheck) wxDateTime& {
</ins><span class="cx">         $1 = (TYPE($input) != T_NONE);
</span><span class="cx"> }
</span><ins>+
+%typemap(in) wxDateTime::WeekDay "$1 = (wxDateTime::WeekDay)NUM2INT($input);"
+%typemap(out) wxDateTime::WeekDay "$result = INT2NUM($1);"
</ins></span></pre>
</div>
</div>...