使用外部"C"的目的是什么?和在函数定义之前的#define常量? [英] What is the purpose of using extern "C" and a #define constant before a function definition?

查看:228
本文介绍了使用外部"C"的目的是什么?和在函数定义之前的#define常量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
在函数定义和#define常量之前使用extern"C"的目的是什么?

Dear all,
What is the purpose of using extern "C" before a function definition and a #define constant?

extern "C" Some#defineVariableHere void MyFunc()
{}

推荐答案

它指定调用函数的方式:MSDN [
It specifies the way in which the function should be called: MSDN[^]


这篇关于使用外部"C"的目的是什么?和在函数定义之前的#define常量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆