Most functions were using asserts, but in some cases it might not be a programmatic error to pass an invalid ifnum. This makes sure the code does not crash by testing it at runtim and returning an error.
Most functions were using asserts, but in some cases it might not be a programmatic error to pass an invalid ifnum. This makes sure the code does not crash by testing it at runtim and returning an error.