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

  • From: Fjölnir Ásgeirsson <fjolnir@xxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 31 Jul 2012 19:27:47 +0900

Well no. It pcalls, and catches the error. That can't possibly be as fast as 
just calling dlsym straight. (which is how you check for symbols at runtime => 
I'm not sure what the issue is)
Is dlsym not available on windows?

– Fjölnir

On Jul 30, 2012, at 19:50 , Cosmin Apreutesei <cosmin.apreutesei@xxxxxxxxx> 
wrote:

>> Couldn't you just call dlsym and check for a nil result?
> 
> That's what the check() function does, albeit in a portable fashion.
> 


Other related posts: