Ardour  8.7-15-gadf511264b
CFunc::Call< FnPtr, ReturnType > Struct Template Reference

#include <CFunctions.h>

Public Types

typedef FuncTraits< FnPtr >::Params Params
 

Static Public Member Functions

static int f (lua_State *L)
 

Detailed Description

template<class FnPtr, class ReturnType = typename FuncTraits <FnPtr>::ReturnType>
struct CFunc::Call< FnPtr, ReturnType >

lua_CFunction to call a function with a return value.

This is used for global functions, global properties, class static methods, and class static properties.

The function pointer is in the first upvalue.

Definition at line 211 of file CFunctions.h.

Member Typedef Documentation

◆ Params

template<class FnPtr , class ReturnType = typename FuncTraits <FnPtr>::ReturnType>
typedef FuncTraits<FnPtr>::Params CFunc::Call< FnPtr, ReturnType >::Params

Definition at line 213 of file CFunctions.h.

Member Function Documentation

◆ f()

template<class FnPtr , class ReturnType = typename FuncTraits <FnPtr>::ReturnType>
static int CFunc::Call< FnPtr, ReturnType >::f ( lua_State L)
inlinestatic

Definition at line 214 of file CFunctions.h.


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