mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Desc: Add obj_desc_short()
Same as obj_desc() but use the short version and do not include the location information by default. New method instead of bool parameters for readability.
This commit is contained in:
parent
92f09f0db7
commit
c18366eacf
2 changed files with 15 additions and 1 deletions
|
@ -230,6 +230,9 @@ protected:
|
|||
// IntrusivePtr because the latter is harder to deal with when making
|
||||
// calls from a debugger like lldb, which is the main use of this function.
|
||||
class Obj;
|
||||
extern std::string obj_desc(const Obj* o);
|
||||
std::string obj_desc(const Obj* o);
|
||||
|
||||
// Same as obj_desc(), but ensure it is short and don't include location info.
|
||||
std::string obj_desc_short(const Obj* o);
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue