1. 程式人生 > >java原始碼閱讀 (二)

java原始碼閱讀 (二)

#include <stdio.h>

#define JRT_ENTRY(result_type , header)					\
	JRT_NO(result_type , header)

#define JRT_NO(result_type , header)					\
	extern "C"	{                                       \
		result_type header{								\
			printf("%d" , a);


#define JRT_END }}

class _jobject {};
#include "Header.h"


JRT_ENTRY(int , Test(int a))
	return 30;
JRT_END

int main()
{
	int a = Test(10);
	printf("%d" , a);

	return 0;
}