From: <ro...@us...> - 2009-07-21 12:15:14
|
Revision: 8066 http://playerstage.svn.sourceforge.net/playerstage/?rev=8066&view=rev Author: robotos Date: 2009-07-21 12:15:09 +0000 (Tue, 21 Jul 2009) Log Message: ----------- Reenable Ruby bindings. Not using SWIG_exception function anymore but ruby native exceptions instead, should solve the problem with Mac OS X Modified Paths: -------------- code/player/trunk/client_libs/libplayerc/bindings/CMakeLists.txt code/player/trunk/client_libs/libplayerc/bindings/ruby/playerc.i Modified: code/player/trunk/client_libs/libplayerc/bindings/CMakeLists.txt =================================================================== --- code/player/trunk/client_libs/libplayerc/bindings/CMakeLists.txt 2009-07-21 09:10:52 UTC (rev 8065) +++ code/player/trunk/client_libs/libplayerc/bindings/CMakeLists.txt 2009-07-21 12:15:09 UTC (rev 8066) @@ -1,2 +1,2 @@ ADD_SUBDIRECTORY (python) -#ADD_SUBDIRECTORY (ruby) +ADD_SUBDIRECTORY (ruby) Modified: code/player/trunk/client_libs/libplayerc/bindings/ruby/playerc.i =================================================================== --- code/player/trunk/client_libs/libplayerc/bindings/ruby/playerc.i 2009-07-21 09:10:52 UTC (rev 8065) +++ code/player/trunk/client_libs/libplayerc/bindings/ruby/playerc.i 2009-07-21 12:15:09 UTC (rev 8066) @@ -312,7 +312,7 @@ int i; if (RARRAY_LEN($input) != $1_dim0) { - SWIG_exception( SWIG_TypeError, "Size mismatch on the array" ); + rb_raise( rb_eRuntimeError, "Size mismatch on the array" ); return 0; } @@ -330,7 +330,7 @@ int i; if (RARRAY_LEN($input) != $1_dim0) { - SWIG_exception( SWIG_TypeError, "Size mismatch on the array" ); + rb_raise( rb_eRuntimeError, "Size mismatch on the array" ); return 0; } @@ -369,7 +369,7 @@ if (RARRAY_LEN($input) != $1_dim0) { - SWIG_exception( SWIG_TypeError, "Size mismatch on the array" ); + rb_raise( rb_eRuntimeError, "Size mismatch on the array" ); return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |