Код: Выделить всё
%module test
%ignore Stats;
%typemap(jstype) Stats* ""
%typemap(javain) Stats* "0"
void initialize(Stats* s);
Код: Выделить всё
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
public class test {
public static void initialize( s) { // How to supppress this parameter ?
testJNI.initialize(0);
}
}
Знаете ли вы, какие карты типов правильные?
Я что-то читал о javaparams, но не смог найти никакой документации по этому поводу, и, похоже, это не работает, или я использую его неправильно.>
Подробнее здесь: https://stackoverflow.com/questions/798 ... ass-method
Мобильная версия