Re: function to check if a symbol in a library exists or not

  • From: Cosmin Apreutesei <cosmin.apreutesei@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 30 Jul 2012 13:40:14 +0300

>> This sounds like a dodgy way to do it, would you not be better off
>> parsing cairo's config.h for enabled backend defines?

Not sure how parsing a header file can constitute a simpler solution
than my 3 line function. Besides, I don't wan to carry around a header
file, and also I don't see a reason why a ffi binding should not work
with different variations of a certain library automatically, without
extra burdens on the user.

Other related posts: