OpenTTD Source  20241108-master-g80f628063a
LibraryLoader::Function Class Reference

A function loaded from a library. More...

#include <library_loader.h>

Public Member Functions

 Function (void *p)
 
template<typename T , typename = std::enable_if_t<std::is_function_v<T>>>
 operator T* () const
 

Private Attributes

void * p
 

Detailed Description

A function loaded from a library.

Will automatically cast to the correct function pointer type on retrieval.

Definition at line 20 of file library_loader.h.


The documentation for this class was generated from the following file: