Static ctors in wasm

H. S. Teoh hsteoh at qfbox.info
Thu Feb 15 22:15:00 UTC 2024


On Thu, Feb 15, 2024 at 03:04:28PM -0700, David Gileadi via Digitalmars-d wrote:
> On 2/15/24 2:45 PM, H. S. Teoh wrote:
[...]
> > ```d
> > extern(C) extern __gshared
> > {
> >      void* __start__minfo;
> >      void* __stop__minfo;
> > }
> > ```
[...]
> While I have zero knowledge of how LDC handles WASM, I did notice one
> difference between your code and the example in the link: the
> definition at the link has three underscores before the `minfo`
> whereas your code has only two.

Whoa... I totally missed that! :-O

However, correcting it to 3 underscores still produced 0. :-(   What's
going on??


T

-- 
I am not young enough to know everything. -- Oscar Wilde


More information about the Digitalmars-d mailing list