Top


定義場所(file name)

hotspot/src/share/vm/runtime/interfaceSupport.hpp

名前(function name)

#define JNI_LEAF(result_type, header)                                \

本体部(body)

  {- -------------------------------------------
  (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.