prolog and epilog code
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 2 10:41:41 PDT 2016
On 8/2/16 1:26 PM, Adam D. Ruppe wrote:
> On Tuesday, 2 August 2016 at 17:23:57 UTC, Adam D. Ruppe wrote:
>> _d_run_main is extern(C), not just extern. Then your code should work.
>
> Also, you don't actually have to rt_init and rt_term if you do
> _d_run_main because it does it for you...
I don't think this is supposed to be exposed. You should call the
runtime in the expected way (i.e. rt_init, rt_term), because this may
change in ways that would still compile but crash horrifically.
-Steve
More information about the Digitalmars-d-learn
mailing list