# _IMain_IntToString
function _IMain_IntToString(v)Formats a signed integer without relying on runtime-specific numeric string conversion.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
src/i_main.mlNormalizes process arguments, starts Doom, and reports uncaught startup failures through the active platform UI.
d_main.ml → src/d_main.mldoomdef.ml → src/doomdef.mlm_argv.ml → src/m_argv.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencystd/math.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/math.ml external dependencyfunction _IMain_IntToString(v)Formats a signed integer without relying on runtime-specific numeric string conversion.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
const _IMAIN_MB_ICONERROR = 16Defines imain mb iconerror for the i main subsystem.
const _IMAIN_MB_OK = 0Defines imain mb ok for the i main subsystem.
inline function _IMain_ShowFatalError(msg)Shows a fatal startup/runtime error in a GUI message box for windows-subsystem builds.
| Parameter | Type | Default | Description |
|---|---|---|---|
msg | dynamic | — | Msg value supplied to `_IMain_ShowFatalError`. |
function main(args)Converts process arguments into Doom's argv representation, enters D_DoomMain, and reports an uncaught startup failure through the platform error path.
| Parameter | Type | Default | Description |
|---|---|---|---|
args | dynamic | — | Args value supplied to `main`. |
extern function MessageBoxW(hwnd as ptr, text as wstr, caption as wstr, flags as u32) from "user32.dll" symbol "MessageBoxW" returns intDisplays the UTF-16 fatal-error dialog used when startup cannot reach the in-game console.
| Parameter | Type | Default | Description |
|---|---|---|---|
hwnd | ptr | — | `ptr` value supplied as hwnd to `MessageBoxW`. |
text | wstr | — | Text to process. |
caption | wstr | — | `wstr` value supplied as caption to `MessageBoxW`. |
flags | u32 | — | Bit flags that control the operation. |
Returns: Result returned by the native `MessageBoxW` binding as `int`.