/runtime/main.d
http://github.com/wilkie/djehuty · D · 26 lines · 7 code · 5 blank · 14 comment · 0 complexity · b40c211012b103be254992eb59885a3e MD5 · raw file
- /*
- * main.d
- *
- * This module provides the C entry into the application.
- *
- */
- import runtime.gc;
- // The user supplied D entry
- int main(char[][] args);
- // Description: This function is the main entry point of the application.
- // argc: The number of arguments
- // argv: An array of strings that specify the arguments.
- // Returns: The error code for the application.
- extern(C) int main(int argc, char** argv) {
- // Initialize the garbage collector
- gc_init();
- // Gather arguments
- // Terminate the garbage collector
- gc_term();
- return 0;
- }