A lot o functions in OpenNI return like this:
XN_C_API XnInt32 XN_C_DECL xnVersionCompare (const XnVersion *pVersion1, const XnVersion *pVersion2)
I’d like to now what is XN_C_API and XN_C_DECL.
Just curiosity!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not anything to do with the return value. Without looking at the source, I suspect that when compiling for Windows:
XN_C_APIgets defined to either__declspec(dllexport)or__declspec(dllimport)depending on whether you’re compiling the DLL or importing functions from it.XN_C_DECLgets defined to the desired calling convention for the function (probably__stdcallor__cdecl)