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

This commit is contained in:
MarcoFalke committed 2020-07-03 10:32:36 -04:00
1 parent faaeb2b0b3
commit fa9708f94c
1 file changed
+2
+2
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.