carb::acquireInterfaceFromLibraryForBindings
Defined in carb/BindingsUtils.h
-
template<typename InterfaceType>
InterfaceType *carb::acquireInterfaceFromLibraryForBindings(const char *libraryPath) Helper for Framework::tryAcquireInterfaceFromLibrary() that throws on error.
- Template Parameters
InterfaceType – The interface to acquire (i.e.
assets::IAssets
). Must be specified and cannot be inferred.- Parameters
libraryPath – The library path to acquire the interface from. Must be specified. May be relative or absolute.
- Throws
std::runtime_error – if the interface cannot be acquired and exceptions are enabled, otherwise this error condition results in a CARB_FATAL_UNLESS() assertion.
- Returns
A pointer to the interface.