PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/runtime/main.d

http://github.com/wilkie/djehuty
D | 26 lines | 7 code | 5 blank | 14 comment | 0 complexity | b40c211012b103be254992eb59885a3e MD5 | raw file
 1/*
 2 * main.d
 3 *
 4 * This module provides the C entry into the application.
 5 *
 6 */
 7
 8import runtime.gc;
 9
10// The user supplied D entry
11int main(char[][] args);
12
13// Description: This function is the main entry point of the application.
14// argc: The number of arguments
15// argv: An array of strings that specify the arguments.
16// Returns: The error code for the application.
17extern(C) int main(int argc, char** argv) {
18	// Initialize the garbage collector
19	gc_init();
20
21	// Gather arguments
22
23	// Terminate the garbage collector
24	gc_term();
25	return 0;
26}