mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Change dln_open in dmydln.c to return error instead of raise
This commit is contained in:
parent
057b69cfdf
commit
5c32a1503f
1 changed files with 3 additions and 4 deletions
7
dmydln.c
7
dmydln.c
|
@ -21,12 +21,11 @@ dln_symbol(void *handle, const char *symbol)
|
|||
UNREACHABLE_RETURN(NULL);
|
||||
}
|
||||
|
||||
NORETURN(void *dln_open(const char *library, char *error, size_t size));
|
||||
void*
|
||||
dln_open(const char *library, char *error, size_t size)
|
||||
{
|
||||
rb_loaderror("this executable file can't load extension libraries");
|
||||
|
||||
UNREACHABLE_RETURN(NULL);
|
||||
static const char *error_str = "this executable file can't load extension libraries";
|
||||
strlcpy(error, error_str, size);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue