KVIrc  4.9.2
DeveloperAPIs
Macros | Functions
libkvimath.cpp File Reference
#include "kvi_settings.h"
#include "KviModule.h"
#include "KviCString.h"
#include <cmath>

Macros

#define MATH_KVS_1PARAM_FUNCTION(__fncname, __paramname, __mathcallname)
 

Functions

static bool math_kvs_fnc_e (KviKvsModuleFunctionCall *c)
 
static bool math_kvs_fnc_isinf (KviKvsModuleFunctionCall *c)
 
static bool math_kvs_fnc_isnan (KviKvsModuleFunctionCall *c)
 
static bool math_kvs_fnc_pi (KviKvsModuleFunctionCall *c)
 
static bool math_kvs_fnc_pow (KviKvsModuleFunctionCall *c)
 
static bool math_module_cleanup (KviModule *)
 
static bool math_module_init (KviModule *m)
 

Macro Definition Documentation

#define MATH_KVS_1PARAM_FUNCTION (   __fncname,
  __paramname,
  __mathcallname 
)
Value:
static bool __fncname(KviKvsModuleFunctionCall * c) \
{ \
kvs_real_t dReal; \
KVSM_PARAMETER(__paramname, KVS_PT_REAL, 0, dReal) \
c->returnValue()->setReal(__mathcallname(dReal)); \
return true; \
}
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define KVSM_PARAMETERS_BEGIN(pCall)
Definition: KviKvsModuleInterface.h:236
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
Definition: KviKvsModuleInterface.h:110
double kvs_real_t
Definition: KviKvsTypes.h:35
Definition: KviKvsParameterProcessor.h:67
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233

Function Documentation

static bool math_kvs_fnc_e ( KviKvsModuleFunctionCall c)
static
static bool math_kvs_fnc_isinf ( KviKvsModuleFunctionCall c)
static
static bool math_kvs_fnc_isnan ( KviKvsModuleFunctionCall c)
static
static bool math_kvs_fnc_pi ( KviKvsModuleFunctionCall c)
static
static bool math_kvs_fnc_pow ( KviKvsModuleFunctionCall c)
static
static bool math_module_cleanup ( KviModule )
static
static bool math_module_init ( KviModule m)
static