Function TVMFFIEnvModRegisterContextSymbol

Function TVMFFIEnvModRegisterContextSymbol#

Function Documentation#

int TVMFFIEnvModRegisterContextSymbol(const char *name, void *symbol)#

Register a symbol value that will be initialized when a library with the symbol is loaded.

This function can be used to make context functions to be available in the library module that wants to avoid an explicit link dependency

Parameters:
  • name – The name of the symbol.

  • symbol – The symbol to register.

Returns:

0 when success, nonzero when failure happens