From: Alexander S. <aso...@gm...> - 2013-10-18 07:02:48
|
Greetings! I need to force users of the generated Java interface to use factory method in order to instantiate some class, so I need to prevent it from being created using default constructor. I know it is possible in C++ adding a no-arg constructor in private area, but can I do it with C and %extend? Also my previous question about SWIG run-time was never answered. Shortly, if compiling more than one module (%module statement) into a single shared library there are compilation warnings about duplicate definitions. I thought '-noruntime' would solve the issue, but it was said deprecated. Then I found SWIG_NOINCLUDE which solved the problem, but is it a correct way for excluding SWIG run-time out of generated code? It would be nice if you state in documentation in favor of what '-noruntime' was deprecated. There is corresponding question on StackOverflow http://stackoverflow.com/questions/8178479/avoiding-duplicate-swig-boilerplate-when-using-many-swig-generated-modules/19242304#19242304 Thank you in advance! -- Sincerely, Alexander |