当前位置:网站首页>Define in and define out

Define in and define out

2022-07-05 07:51:00 Yang_ Winston

Recently, when looking at the code , I found that there are many variables or functions in front of IN or OUT“ modification ”, This is not a type , Find the definition , Discovery is defined like this :#define IN
At first glance, I don't know what I mean , Different from common macro definitions , Its second value is empty . There is a saying that may explain , Record here .

This is a programming specification
such as #define IN
#define OUT
Define a function int fun(IN char *param,OUT *char result)
Indicates that the first parameter is the incoming parameter , The second parameter is the callback result , because IN OUT Itself is empty , So it doesn't affect the compilation , Just for code specification , Let people more clearly define .

原网站

版权声明
本文为[Yang_ Winston]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140549119512.html