当前位置:网站首页>define #使用
define #使用
2022-08-02 14:08:00 【nginux】
#include<stdio.h>
#include<stdlib.h>
#define REG_JNI(name) { name, #name }
struct myType {
void(*mProc)();
const char* mName;
};
void print(){
printf("hello,world\n");
}
const myType gRegJNI[] ={
REG_JNI(print),
};
void register_jni_procs(const myType arrays[],size_t count)
{
for(size_t i=0;i<count;i++)
arrays[i].mProc();
}
int main(){
register_jni_procs(gRegJNI,1);
return 0;
}边栏推荐
猜你喜欢
随机推荐
DataX 的使用
GPT2计算流程详解
What?It's 2020, you still can't adapt the screen?
自定义圆形seekBar,超简单
【使用Pytorch实现ResNet网络模型:ResNet50、ResNet101和ResNet152】
vscode compiles the keil project and burns the program
LLVM系列第二十七章:理解IRBuilder
tensorflow实战之手写体识别
Win10不能启动WampServer图标呈橘黄色的解决方法
Redis数据库相关指令
Ffmpeg交叉编译
最小树高度
Spark_DSL
机器学习---监督学习、无监督学习
【我的电赛日记(三)】STM32学习笔记与要点总结
spark中RDD与DF的关系
【目标检测】YOLO v5 安全帽检测识别项目模型
Word2vec词向量
基于GPT的隐变量表征解码结构
“自主可控”的正确姿势








