PageRenderTime 45ms CodeModel.GetById 42ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-2-pre4/bsh/commands/exit.bsh

#
Unknown | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | 7d18ecf86a2a02a7d9ae8bf09d61713b MD5 | raw file
 1/**
 2	Conditionally exit the virtual machine.
 3	Call System.exit(0) unless bsh.system.shutdownOnExit == false.
 4*/
 5
 6bsh.help.exit = "usage: exit()";
 7
 8exit() {
 9	// shutdown Java VM unless flagged
10	if ( bsh.system.shutdownOnExit != false )
11		System.exit(0);
12}