[fpc-pascal] Converting header with va_list

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Jan 18 17:17:17 CET 2012


On 17 Jan 2012, at 16:19, Felipe Monteiro de Carvalho wrote:

> I need to convert this:
>
> [felipe at localhost android]$ gedit
> ~/Programas/android-ndk-r5/platforms/android-8/arch-arm/usr/include/ 
> jni.h
>
> void        (*CallStaticVoidMethodV)(JNIEnv*, jclass, jmethodID,  
> va_list);
>
> To Pascal. I tryed using array of const, but it keeps crashing in  
> this call =(

"array of const" or "varargs" only matches "..." in C. va_list is an  
ABI-defined, and often at least partially handled via compiler magic,  
record type. Look for the copy of varargs.h for the gcc version you  
use on Android.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120118/22eb997a/attachment.html>


More information about the fpc-pascal mailing list