1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/dl/handle.c (**) adding documentation

* test/dl/test_handle.rb (test_NEXT) testing the NEXT handle

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tenderlove 2009-10-25 00:11:56 +00:00
parent 1578edbafc
commit 3f6f9f87ca
2 changed files with 16 additions and 0 deletions

View file

@ -51,6 +51,12 @@ static const rb_data_type_t dlhandle_data_type = {
0, dlhandle_free, dlhandle_memsize,
};
/*
* call-seq: close
*
* Close this DL::Handle. Calling close more than once will raise a
* DL::DLError exception.
*/
VALUE
rb_dlhandle_close(VALUE self)
{

View file

@ -122,5 +122,15 @@ module DL
handle.disable_close
assert !handle.close_enabled?, 'close is enabled'
end
def test_NEXT
handle = DL::Handle::NEXT
assert handle['malloc']
end
def test_DEFAULT
handle = DL::Handle::DEFAULT
assert handle['malloc']
end
end
end