mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 13:00:02 +02:00
Add implicit conversion for UniversalTResult
This commit is contained in:
@@ -24,7 +24,7 @@ UniversalTResult::UniversalTResult() : universal_result(Value::kResultFalse) {}
|
||||
UniversalTResult::UniversalTResult(tresult native_result)
|
||||
: universal_result(to_universal_result(native_result)) {}
|
||||
|
||||
tresult UniversalTResult::native() const {
|
||||
UniversalTResult::operator tresult() const {
|
||||
static_assert(Steinberg::kResultOk == Steinberg::kResultTrue);
|
||||
switch (universal_result) {
|
||||
case Value::kNoInterface:
|
||||
|
||||
@@ -104,7 +104,7 @@ class UniversalTResult {
|
||||
/**
|
||||
* Get the native equivalent for the wrapped `tresult` value.
|
||||
*/
|
||||
tresult native() const;
|
||||
operator tresult() const;
|
||||
|
||||
/**
|
||||
* Get the original name for the result, e.g. `kResultOk`.
|
||||
|
||||
Reference in New Issue
Block a user