make deprecation advice a bit more helpful

This commit is contained in:
Vern Paxson 2022-05-13 10:33:43 -07:00
parent a21d14fbd2
commit da72c1ea93

View file

@ -89,12 +89,14 @@ public:
bool Cache(const void* obj, Val* val);
Val* Lookup(const void* obj);
[[deprecated("Remove in v5.1. Use const void* interface instead.")]] bool
[[deprecated(
"Remove in v5.1. Use Frame::GetTriggerAssoc() / const void* interface instead.")]] bool
Cache(const CallExpr* call, Val* val)
{
return Cache((const void*)call, val);
}
[[deprecated("Remove in v5.1. Use const void* interface instead.")]] Val*
[[deprecated(
"Remove in v5.1. Use Frame::GetTriggerAssoc() / const void* interface instead.")]] Val*
Lookup(const CallExpr* call)
{
return Lookup((const void*)call);