Warn on second call of register_param_change_callback (#297)
This commit is contained in:
parent
321e0b61b0
commit
c0af872c18
1 changed files with 4 additions and 0 deletions
|
@ -226,5 +226,9 @@ NodeParameters::list_parameters(const std::vector<std::string> & prefixes, uint6
|
|||
void
|
||||
NodeParameters::register_param_change_callback(ParametersCallbackFunction callback)
|
||||
{
|
||||
if (parameters_callback_) {
|
||||
fprintf(stderr, "Warning: param_change_callback already registered, "
|
||||
"overwriting previous callback\n");
|
||||
}
|
||||
parameters_callback_ = callback;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue