MissingSymbolCallbackDg

The MissingSymbolCallback allows one to prevent the throwing of SymbolLoadExceptions.

By default, a SymbolLoadException is thrown when a symbol cannot be found in a shared library. Assigning a MissingSymbolCallback to a loader allows the application to override this behavior. If the missing symbol in question can be ignored, the callback should return ShouldThrow.No to prevent the exception from being thrown. Otherwise, the return value should be ShouldThrow.Yes. This is useful to allow a binding implemented for version N.N of a library to load older or newer versions that may be missing functions the loader expects to find, provided of course that the app does not need to use those functions.

  1. alias MissingSymbolCallbackFunc = ShouldThrow function(string symbolName)
  2. alias MissingSymbolCallbackDg = ShouldThrow delegate(string symbolName)
    alias MissingSymbolCallbackDg = ShouldThrow delegate
    (
    string symbolName
    )

Meta