Commit 4ac53fd
committed
Use partition_type_property descriptor in DPCTLDevice_GetParentDevice
This allows to test that the device is an unpartition device without
raising and handling the C++ exception.
If info::device::partition_type_property is
info::partition_property::no_partition then retrieving the parent_device
descriptor will throw.1 parent b437c47 commit 4ac53fd
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
546 | 558 | | |
547 | 559 | | |
548 | 560 | | |
| |||
0 commit comments