exitinternal.c

来自「用于移动设备上的java虚拟机源代码」· C语言 代码 · 共 27 行

C
27
字号
/* * @(#)exitInternal.c	1.5 02/09/03 @(#) * * Copyright (c) 1999-2002 Sun Microsystems, Inc.  All rights reserved. * PROPRIETARY/CONFIDENTIAL * Use is subject to license terms. */#include <kni.h>#include <midpServices.h>/*========================================================================= * FUNCTION:      exitInternal(I)V * CLASS:         javax.microedition.midlet.Main * TYPE:          virtual native function * OVERVIEW:      Stop the VM and exit immediately. * INTERFACE (operand stack manipulation): *   parameters:  <none> *   returns:     <nothing> *=======================================================================*/KNIEXPORT KNI_RETURNTYPE_VOIDJava_com_sun_midp_main_Main_exitInternal() {    int value = (int)KNI_GetParameterAsInt(1);    midp_exitVM(value);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?