mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
parent
b74014fa5e
commit
91577713fd
@ -80,7 +80,7 @@ private:
|
|||||||
void RegisterFunction(void) { \
|
void RegisterFunction(void) { \
|
||||||
Function::Ptr sf = new icinga::Function(#ns "#" #name, WrapFunction(callback), false); \
|
Function::Ptr sf = new icinga::Function(#ns "#" #name, WrapFunction(callback), false); \
|
||||||
ScriptGlobal::Set(#ns "." #name, sf); \
|
ScriptGlobal::Set(#ns "." #name, sf); \
|
||||||
Function::Ptr dsf = new icinga::Function("Deprecated#" #name " (deprecated)", WrapFunction(callback), false, true); \
|
Function::Ptr dsf = new icinga::Function("Deprecated#__" #name " (deprecated)", WrapFunction(callback), false, true); \
|
||||||
ScriptGlobal::Set("Deprecated.__" #name, dsf); \
|
ScriptGlobal::Set("Deprecated.__" #name, dsf); \
|
||||||
} \
|
} \
|
||||||
INITIALIZE_ONCE_WITH_PRIORITY(RegisterFunction, 10); \
|
INITIALIZE_ONCE_WITH_PRIORITY(RegisterFunction, 10); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user