Bug #8692
Updated by nobu (Nobuyoshi Nakada) over 11 years ago
=begin require 'fiddle' libc (({require 'fiddle'})) (({libc = Fiddle.dlopen('libc.dylib') time Fiddle.dlopen('libc.dylib')})) (({time = Fiddle::Function.new( libc['time'], [Fiddle::TYPE_VOIDP], Fiddle::TYPE_VOIDP ) puts time.call(nil) )})) (({puts time.call(nil)})) stack trace: ((<URL:https://gist.github.com/zzak/6085700>)) https://gist.github.com/zzak/6085700 =end