A Programmer's Dilema: juggling with C, BetterC, D, Macros and Cross Compiling, etc.
Mike Parker
aldacron at gmail.com
Mon May 1 10:23:21 UTC 2023
On Monday, 1 May 2023 at 09:35:59 UTC, Dukc wrote:
> hard. Seems the C-linked functions in
> [core.runtime](https://dlang.org/phobos/core_runtime.html#.Runtime.initialize) ought to do the trick.
If you're referring to `rt_init` and `rt_term` are the
`extern(C)` functions in `core.runtime`. It's not necessary to
call those from C. A D library with a C interface can provide an
`extern(C)` initialization function that internally calls
`Runtime.initialize`.
More information about the Digitalmars-d-learn
mailing list