[fpc-pascal] Access fpc libraries with Java ?

leledumbo leledumbo_cool at yahoo.co.id
Mon Mar 31 18:16:57 CEST 2014


> Here is a somewhat dated version of JNI.pas for FPC which might help you
out.

So now we have 3 JNI.pas wrapper...
I don't see any disclaimer, doc, changelog, whatsoever. Where do you get it?
Also, if you don't mind, update the dirty

{$ifdef mswindows}stdcall;{$else}cdecl;{$endif}

with:

{$macro on}
{$ifdef mswindows}
{$define jnicall:=stdcall}
{$else}
{$define jnicall:=cdecl}
{$endif}

once before all declarations, and you can simply use jnicall; as calling
convention modifier



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Access-fpc-libraries-with-Java-tp5718791p5718831.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list