Skip to content

Commit

Permalink
tests: Add binding helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ncesario-lunarg committed Feb 14, 2023
1 parent c2722ca commit dc2a4a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/vktestbinding.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class Handle {
const T &handle() const noexcept { return handle_; }
bool initialized() const noexcept { return (handle_ != T{}); }

operator T() const noexcept { return handle(); }
operator bool() const noexcept { return initialized(); }

protected:
typedef T handle_type;

Expand Down

0 comments on commit dc2a4a1

Please sign in to comment.