rpc: Assert that passed arg names are equal to hardcoded ones

This commit is contained in:
MarcoFalke 2020-07-03 10:13:18 -04:00
parent faaeb2b0b3
commit fa9708f94c
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -112,6 +112,8 @@ public:
fn().GetArgNames(),
intptr_t(fn))
{
CHECK_NONFATAL(fn().m_name == name_in);
CHECK_NONFATAL(fn().GetArgNames() == args_in);
}
//! Simplified constructor taking plain rpcfn_type function pointer.