Structs
Test case metadata
Functions
-
fn entrypoint<UserMain>(argc: c_int, argv: &&c_char) -> c_int
UserMain: NamedFunctionProgram entrypoint glue.
This is equivalent to C's
main
, not_start
as we still want to use the C runtime for invoking the static constructors.It converts the
argc
andargv
arguments to a slice of strings, initializes the main thread associated data (if threading is enabled) and then invokes the user-definedmain
function.
Macros
Allocates the space for program arguments
Consts
-
Discovered unit test cases.
test_cases()
call can be lowered at at any point during the IR lowering processed, ensure it is called during static initialization, which happens last so that all test cases will have been discovered. -
const STACK_ARGS_MAX: usize = ...