Skip to content

Instantly share code, notes, and snippets.

@nagachika
Created July 28, 2011 02:50
Show Gist options
  • Save nagachika/1110870 to your computer and use it in GitHub Desktop.
Save nagachika/1110870 to your computer and use it in GitHub Desktop.
require "dl/func"
include DL
GC.stress = true
Function.new(CFunc.new(0, TYPE_INT, 'name'),
[TYPE_VOIDP, TYPE_VOIDP]){|x,y|
x.inspect
0
}.call(0, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment