operator bool for Bytecode objects
parent
79f2db1f54
commit
6bcd53c51a
|
@ -494,6 +494,7 @@ struct Bytecode {
|
|||
return *this;
|
||||
}
|
||||
|
||||
operator bool() const { return p_code != nullptr; }
|
||||
operator ostd::Uint32 *() const { return p_code; }
|
||||
private:
|
||||
ostd::Uint32 *p_code;
|
||||
|
|
Loading…
Reference in New Issue