OpenTTD Source  20240919-master-gdf0233f4c2
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: