12-08-2014 08:44 AM
Hi,
I need to create Pascal binding for NI-VISA and I have a problem with variable va_list in visa.h file line number 73
typedef va_list ViVAList
va_list is not declared anywhere visa.h, visatype.h and vpptype.h.
What is the type of this variable int, double, boolean or...?
I'm supprised that C ignored undeclared variable.
12-08-2014 08:52 AM
12-08-2014 09:03 AM
Thanks,
I see it impossible to translate it to Pascal and call a function in line 169 and etc.
12-08-2014 10:44 AM
Indeed. I don't think Pascal even has a concept of a va_list interface. Even if it had it would be quite a dead end, since va_list is implemented by each compiler in its own way.
Basically, using va_list functions is only guaranteed to work if you use for both the caller and the callee the same compiler, in theorie even only the same version, although compiler builders usually don't change the implementation of this between versions, but C doesn't guarantee anything here.