diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 09:38:26 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-11 09:38:26 +0000 |
commit | 3a202ff2b4b39e910c7b99e2993ac5e5e12f2ad1 (patch) | |
tree | 1c4a9ad4faeee42031e163d1853d83c7b383c995 /ext/dl/sym.c | |
parent | 3bd7404423c8a89297b52ff9496fa10b86d64046 (diff) | |
download | ruby-3a202ff2b4b39e910c7b99e2993ac5e5e12f2ad1.tar.gz |
raise() -> rb_raise(). (Thanks Tetsuya Watanabe)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/sym.c')
-rw-r--r-- | ext/dl/sym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/sym.c b/ext/dl/sym.c index 137b47525a..7f9793fa51 100644 --- a/ext/dl/sym.c +++ b/ext/dl/sym.c @@ -410,7 +410,7 @@ rb_dlsym_call(int argc, VALUE argv[], VALUE self) } else{ if( TYPE(argv[i]) != T_STRING ){ - raise(rb_eDLError, "#%d must be a string",i); + rb_raise(rb_eDLError, "#%d must be a string",i); }; ANY2S(args[i]) = DLSTR(RSTRING(argv[i])->ptr); }; @@ -418,7 +418,7 @@ rb_dlsym_call(int argc, VALUE argv[], VALUE self) break; case 's': if( TYPE(argv[i]) != T_STRING ){ - raise(rb_eDLError, "#%d must be a string",i); + rb_raise(rb_eDLError, "#%d must be a string",i); }; ANY2S(args[i]) = DLSTR(dlmalloc(RSTRING(argv[i])->len + 1)); memcpy((char*)(ANY2S(args[i])), RSTRING(argv[i])->ptr, RSTRING(argv[i])->len + 1); |