]> sigrok.org Git - libsigrokdecode.git/commit
decoder: rephrase .has_channel() argument parse logic
authorGerhard Sittig <redacted>
Sun, 17 Dec 2017 17:50:25 +0000 (18:50 +0100)
committerUwe Hermann <redacted>
Sat, 31 Mar 2018 18:44:21 +0000 (20:44 +0200)
commitcd8d918846a00847f2e8e15ba1642882c34a1ff3
tree38f65383d061d1e17b0eabcb3a9d46eadd457ac5
parent63bbdb445fc2ade82c15766b419c869a41ed8f38
decoder: rephrase .has_channel() argument parse logic

Have the Python C API check the argument type and do the type conversion
already. Raise an IndexError exception when the range check fails.
type_decoder.c