summaryrefslogtreecommitdiff
path: root/ext/dl
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl')
-rw-r--r--ext/dl/lib/dl/struct.rb1
-rw-r--r--ext/dl/lib/dl/value.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb
index db27208..9359ca4 100644
--- a/ext/dl/lib/dl/struct.rb
+++ b/ext/dl/lib/dl/struct.rb
@@ -1,4 +1,5 @@
require 'dl'
+require 'dl/value'
require 'dl/pack.rb'
module DL
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb
index e99e3cf..147d9d1 100644
--- a/ext/dl/lib/dl/value.rb
+++ b/ext/dl/lib/dl/value.rb
@@ -46,6 +46,8 @@ module DL
end
def wrap_arg(arg, ty, funcs = [], &block)
+ require 'dl/func'
+
funcs ||= []
case arg
when nil