An opaque datatype that represents a loaded shared object.
More...
|
|
constexpr | SharedObject (const SharedObject &other) noexcept=default |
| | Copy constructor.
|
| |
|
constexpr SharedObject & | operator= (const SharedObject &other) noexcept=default |
| | Assignment operator.
|
| |
◆ SharedObject() [1/2]
| constexpr SDL::SharedObject::SharedObject |
( |
const SharedObjectRaw |
resource | ) |
|
|
inlineexplicitconstexprnoexcept |
- Parameters
-
| resource | a SharedObjectRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
◆ SharedObject() [2/2]
- Parameters
-
| sofile | a system-dependent name of the object file. |
- Postcondition
- an opaque pointer to the object handle or nullptr on failure; call GetError() for more information.
- Thread safety:
- It is safe to call this function from any thread.
- Since
- This function is available since SDL 3.2.0.
- See also
- SharedObject.LoadFunction
-
SharedObject.Unload
The documentation for this class was generated from the following file: