void raise_disallowed_dynamic_call(const Func* f) { raise_hack_strict( RuntimeOption::DisallowDynamicVarEnvFuncs, "disallow_dynamic_var_env_funcs", Strings::DISALLOWED_DYNCALL, f->fullName()->data() ); }
void raise_disallowed_dynamic_call(const std::string& msg) { if (RuntimeOption::RepoAuthoritative && Repo::global().DisallowDynamicVarEnvFuncs) { raise_error(msg); } raise_hack_strict(RuntimeOption::DisallowDynamicVarEnvFuncs, "disallow_dynamic_var_env_funcs", msg); }
void raise_hack_strict(HackStrictOption option, const char *ini_setting, const char *fmt, ...) { std::string msg; va_list ap; va_start(ap, fmt); string_vsnprintf(msg, fmt, ap); va_end(ap); raise_hack_strict(option, ini_setting, msg); }