mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qapi: Assert incomplete object occurs only in dealloc visitor
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200424084338.26803-7-armbru@redhat.com>
This commit is contained in:
parent
554d6586ae
commit
8e08bf4ea2
4 changed files with 16 additions and 0 deletions
|
@ -142,6 +142,11 @@ bool visit_is_input(Visitor *v)
|
|||
return v->type == VISITOR_INPUT;
|
||||
}
|
||||
|
||||
bool visit_is_dealloc(Visitor *v)
|
||||
{
|
||||
return v->type == VISITOR_DEALLOC;
|
||||
}
|
||||
|
||||
void visit_type_int(Visitor *v, const char *name, int64_t *obj, Error **errp)
|
||||
{
|
||||
assert(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue