hotspot/src/share/vm/runtime/interfaceSupport.hpp
#define JNI_LEAF(result_type, header) \
{- -------------------------------------------
(1) (関数定義の関数名および型宣言部が生成される)
---------------------------------------- -}
extern "C" { \
result_type JNICALL header { \
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
JavaThread* thread=JavaThread::thread_from_jni_environment(env); \
assert( !VerifyJNIEnvThread || (thread == Thread::current()), "JNIEnv is only valid in same thread"); \
{- -------------------------------------------
(1) __LEAF() マクロのコードが展開される
---------------------------------------- -}
__LEAF(result_type, header)
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.