Crossfire Server, Trunk
|
Class for builtin functions and user-defined callbacks. More...
#include <inja.hpp>
Data Structures | |
struct | FunctionData |
Public Member Functions | |
void | add_builtin (nonstd::string_view name, int num_args, Operation op) |
void | add_callback (nonstd::string_view name, int num_args, const CallbackFunction &callback) |
FunctionData | find_function (nonstd::string_view name, int num_args) const |
Private Attributes | |
std::map< std::pair< std::string, int >, FunctionData > | function_storage |
const int | VARIADIC {-1} |
|
strong |
|
inline |
Definition at line 1670 of file inja.hpp.
References give::name, and give::op.
|
inline |
Definition at line 1674 of file inja.hpp.
References give::name.
Referenced by inja::Environment::add_callback(), and inja::Environment::add_void_callback().
|
inline |
Definition at line 1678 of file inja.hpp.
References give::name, and None.
Referenced by inja::Parser::parse_expression(), and inja::Renderer::visit().
|
private |