Revision: 7990
          http://playerstage.svn.sourceforge.net/playerstage/?rev=7990&view=rev
Author:   robotos
Date:     2009-07-11 02:18:54 +0000 (Sat, 11 Jul 2009)

Log Message:
-----------
catching text only exceptions in Ruby

Modified Paths:
--------------
    code/gazebo/trunk/libgazebo/bindings/ruby/CMakeLists.txt
    code/gazebo/trunk/libgazebo/bindings/ruby/gazeboc.i

Modified: code/gazebo/trunk/libgazebo/bindings/ruby/CMakeLists.txt
===================================================================
--- code/gazebo/trunk/libgazebo/bindings/ruby/CMakeLists.txt    2009-07-11 
02:18:03 UTC (rev 7989)
+++ code/gazebo/trunk/libgazebo/bindings/ruby/CMakeLists.txt    2009-07-11 
02:18:54 UTC (rev 7990)
@@ -34,6 +34,7 @@
             SWIG_LINK_LIBRARIES (${RUBY_MODULE_NAME} ${RUBY_LIBRARY})
       
             ADD_DEPENDENCIES (${RUBY_MODULE_NAME} ${RUBY_INTERFACE_FILE})
+            ADD_DEPENDENCIES (${RUBY_MODULE_NAME} ${LIBGAZEBO_DIR}/gazebo.h)
             TARGET_LINK_LIBRARIES (${RUBY_MODULE_NAME} gazebo)
 
             #TODO: find ruby in windows, check install dir is correct

Modified: code/gazebo/trunk/libgazebo/bindings/ruby/gazeboc.i
===================================================================
--- code/gazebo/trunk/libgazebo/bindings/ruby/gazeboc.i 2009-07-11 02:18:03 UTC 
(rev 7989)
+++ code/gazebo/trunk/libgazebo/bindings/ruby/gazeboc.i 2009-07-11 02:18:54 UTC 
(rev 7990)
@@ -42,6 +42,10 @@
   catch (std::string er) {
     rb_raise(rb_eRuntimeError,er.c_str());
   }
+  catch (const char *er) {
+    rb_raise(rb_eRuntimeError,er);
+  }
+  
 }
 
 %apply const std::string& {std::string* id};


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to