inputX

Undocumented in source.
immutable
auto inputX = q{ #pragma(lib, "kernel32") u8 WriteConsoleA( void* hConsoleOutput, void* lpBuffer, u32 nNumberOfCharsToWrite, u32* lpNumberOfCharsWritten, void* lpReserved ); #pragma(lib, "kernel32") void* GetStdHandle(u32 nStdHandle); enum : u32 { STD_INPUT_HANDLE = 0xFFFFFFF6, STD_OUTPUT_HANDLE = 0xFFFFFFF5, STD_ERROR_HANDLE = 0xFFFFFFF4 } void main(void* hInstance, void* hPrevInstance, u8* lpCmdLine, i32 nShowCmd) { u8[] array = "Hello world"; u32 numWritten; void* handle = GetStdHandle(STD_OUTPUT_HANDLE); WriteConsoleA(handle, array.ptr, array.length, &numWritten, null); } };

Meta