
CHAPTER 7: Integrating External Libraries Defining entry points for direct access 205
For example, suppose your library defines these two entry points:
One (Integer a, String b);
Two ();
The signature strings for these two functions would be "One_ds", "Two".
N
OTE: You cannot define function overloading by returning multiple different signatures for one function.
Attempting to do so produces undefined results.
Library termination
Define the entry point ESTerminate() to free any memory you have allocated when your library is
unloaded.
Whenever a JavaScript function makes a call to a library function, it increments a reference count for that
library. When the reference count for a library reaches 0, the library is automatically unloaded; your
termination function is called, and the
ExternalObject instance is deleted. Note that deleting the
ExternalObject instance does not unload the library if there are remaining references.
Comentários a estes Manuais