Equivalent of DllMain for OSX dynamic libraries?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 26 05:11:23 PDT 2014


On Saturday, 26 July 2014 at 08:37:39 UTC, Jacob Carlborg wrote:
> There is no equivalent to DllMain on OS X or Posix for that 
> matter. The closest you get is the GCC/Clang attribute 
> __attribute__((constructor)), but that requires using a C file, 
> if not LDC or GDC supports that attribute.

Like this? 
http://wiki.dlang.org/LDC-specific_language_changes#LDC_global_crt_ctor_and_LDC_global_crt_dtor


More information about the Digitalmars-d mailing list