aboutsummaryrefslogtreecommitdiffstats
path: root/ext/dl/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/sym.c')
-rw-r--r--ext/dl/sym.c4
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);