Custom calling conventions

Daniel Murphy yebblies at nospamgmail.com
Tue Feb 21 04:13:20 PST 2012


Why can't you do that with existing language features?

alias JniExternFunc!(void function(int)) someJNIFuncYouWantToCallFromD;
mixin JniExportFunc!(&dFuncYouWantToCallUsingJNI);

Where the templates generate the wrapper code/calling convention arg shuffle 
for each function. 




More information about the Digitalmars-d mailing list