main

DMD's entry point, C main.

Without -lowmem, we need to switch to the bump-pointer allocation scheme right from the start, before any module ctors are run, so we need this hook before druntime is initialized and _Dmain is called.

version(!NoMain)
extern (C)
int
main
(
int argc
,
char** argv
)

Return Value

Type: int

Return code of the application

Suggestion Box / Bug Report