jni中的JNICALL的含义

这些宏定义是给编译器用的:

/*
 * @(#)jni_md.h 1.14 03/12/19
 *
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
#ifndef _JAVASOFT_JNI_MD_H_
#define _JAVASOFT_JNI_MD_H_
#define JNIEXPORT __declspec(dllexport)
#define JNIIMPORT __declspec(dllimport)
#define JNICALL __stdcall
typedef long jint;
typedef __int64 jlong;
typedef signed char jbyte;
#endif /* !_JAVASOFT_JNI_MD_H_ */

表示了函数的调用规范,比如参数是从左往右,还是从右往左。

https://www.codeproject.com/Articles/1388/Calling-Conventions-Demystified


阅读更多
文章标签: JVM
个人分类: jvm
上一篇mysql出现错误“ Every derived table must have its own alias”
下一篇File Descriptors
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭