1 #ifndef _KVI_KVS_CORECALLBACKCOMMANDS_H_
2 #define _KVI_KVS_CORECALLBACKCOMMANDS_H_
34 #define KVSCCC(_name) bool _name(KviKvsRunTimeContext * __pContext, KviKvsVariantList * __pParams, KviKvsSwitchList * __pSwitches, const KviKvsScript * __pCallback)
36 #define KVSCCC_pContext __pContext
37 #define KVSCCC_pParams __pParams
38 #define KVSCCC_pSwitches __pSwitches
39 #define KVSCCC_pCallback __pCallback
41 #define KVSCCC_PARAMETER(a, b, c, d) KVS_PARAMETER(a, b, c, d)
43 #define KVSCCC_PARAMETERS_BEGIN \
44 KVS_PARAMETERS_BEGIN(parameter_format_list)
46 #define KVSCCC_PARAMETERS_END \
48 if(!KviKvsParameterProcessor::process(KVSCCC_pParams, KVSCCC_pContext, parameter_format_list)) \
51 #define KVSCCC_REQUIRE_CONNECTION \
52 if(!KVSCCC_pContext->window()->context()) \
53 return KVSCCC_pContext->errorNoIrcContext(); \
54 if(!KVSCCC_pContext->window()->connection()) \
55 return KVSCCC_pContext->warningNoIrcConnection();
57 #define KVSCCC_pWindow __pContext->window()
58 #define KVSCCC_pConnection __pContext->window()->connection()
59 #define KVSCCC_pIrcContext __pContext->context()
61 namespace KviKvsCoreCallbackCommands
Parser class to handle variant variables lists.
This file contains compile time settings.
KVSCCC(ahost)
Definition: KviKvsCoreCallbackCommands.cpp:133
void init()
Definition: KviKvsCoreCallbackCommands.cpp:1211