Subject: [ruby-ffi] Re: Attaching function with two different signatures |
From: Arvicco |
Date: 6/5/10 3:31 AM |
To: ruby-ffi |
OK, I guess there is no way to tell attach_function that one of the arguments can be either :long or :pointer. I'm attaching this function twice with different names and signatures, and then using convenience method to check argument type and route call to attached function with appropriate signature...