mirror of
https://github.com/eclipse/upm.git
synced 2025-07-08 12:51:18 +03:00
SWIGJAVA: Remove the last JAVA ifdefs from src
Removed all references to #ifdef SWIGJAVA and JAVACALLBACK from the library source. All java-specific source code has been moved to the corresponding library's .i file for java. * Update library source * Update examples where necessary * The function pointer methodology has been remove from libraries which provided callbacks as both a class and a function pointer implementation. Examples were updated to use the class version of callbacks. * Updated documentation for SWIGJAVA Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
23
src/upm.i
23
src/upm.i
@ -2,6 +2,7 @@
|
||||
%include "stdint.i"
|
||||
%include "upm_exception.i"
|
||||
|
||||
/* Import additional SWIG helps (not exposed in wrapper) */
|
||||
%import _upm.i
|
||||
|
||||
%{
|
||||
@ -16,19 +17,21 @@
|
||||
|
||||
#if (SWIG_JAVASCRIPT_V8)
|
||||
%{
|
||||
// Because there's no guarantee that v8 will ever call garbage collection,
|
||||
// we're adding a function that will allow a user to call it manually
|
||||
void cleanUp()
|
||||
{
|
||||
// Call the v8 garbage collector as long as there is memory to clean up
|
||||
// See https://codereview.chromium.org/412163003 for this API change
|
||||
/* Because there's no guarantee that v8 will ever call garbage collection,
|
||||
* we're adding a function that will allow a user to call it manually
|
||||
*/
|
||||
void cleanUp()
|
||||
{
|
||||
/* Call the v8 garbage collector as long as there is memory to clean up
|
||||
* See https://codereview.chromium.org/412163003 for this API change
|
||||
*/
|
||||
#if (SWIG_V8_VERSION < 0x032838)
|
||||
while (!v8::V8::IdleNotification())
|
||||
while (!v8::V8::IdleNotification())
|
||||
#else
|
||||
while (!v8::Isolate::GetCurrent()->IdleNotification(1000))
|
||||
while (!v8::Isolate::GetCurrent()->IdleNotification(1000))
|
||||
#endif
|
||||
{;}
|
||||
}
|
||||
{;}
|
||||
}
|
||||
%}
|
||||
void cleanUp();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user