diff options
author | Mark Spruiell <mes@zeroc.com> | 2014-07-23 16:49:37 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2014-07-23 16:49:37 -0700 |
commit | 771644c88e34713961ae998ddac507553af5cddb (patch) | |
tree | 95f404c423571069b9f790e0f7e70b681677c777 /rb/src/IceRuby/Proxy.cpp | |
parent | Merge branch 'master' of ssh://git.zeroc.com/home/git/ice (diff) | |
download | ice-771644c88e34713961ae998ddac507553af5cddb.tar.bz2 ice-771644c88e34713961ae998ddac507553af5cddb.tar.xz ice-771644c88e34713961ae998ddac507553af5cddb.zip |
ICE-5515 - proxy support for ice_staticId
Diffstat (limited to 'rb/src/IceRuby/Proxy.cpp')
-rw-r--r-- | rb/src/IceRuby/Proxy.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/rb/src/IceRuby/Proxy.cpp b/rb/src/IceRuby/Proxy.cpp index c0caa326aa0..e239414f1f8 100644 --- a/rb/src/IceRuby/Proxy.cpp +++ b/rb/src/IceRuby/Proxy.cpp @@ -18,7 +18,6 @@ #include <Ice/Proxy.h> #include <Ice/Router.h> - using namespace std; using namespace IceRuby; @@ -1198,6 +1197,18 @@ IceRuby_ObjectPrx_ice_uncheckedCast(VALUE self, VALUE obj, VALUE facet) extern "C" VALUE +IceRuby_ObjectPrx_ice_staticId(VALUE self) +{ + ICE_RUBY_TRY + { + return createString(Ice::Object::ice_staticId()); + } + ICE_RUBY_CATCH + return Qnil; +} + +extern "C" +VALUE IceRuby_ObjectPrx_new(int /*argc*/, VALUE* /*args*/, VALUE self) { ICE_RUBY_TRY @@ -1288,6 +1299,7 @@ IceRuby::initProxy(VALUE iceModule) rb_define_singleton_method(_proxyClass, "uncheckedCast", CAST_METHOD(IceRuby_ObjectPrx_uncheckedCast), -1); rb_define_singleton_method(_proxyClass, "ice_checkedCast", CAST_METHOD(IceRuby_ObjectPrx_ice_checkedCast), 4); rb_define_singleton_method(_proxyClass, "ice_uncheckedCast", CAST_METHOD(IceRuby_ObjectPrx_ice_uncheckedCast), 2); + rb_define_singleton_method(_proxyClass, "ice_staticId", CAST_METHOD(IceRuby_ObjectPrx_ice_staticId), 0); rb_define_singleton_method(_proxyClass, "new", CAST_METHOD(IceRuby_ObjectPrx_new), -1); } |