cosmigo / pmotion-purebasic

Cosmigo Pro Motion NG plugins interfaces in PureBasic
Other
5 stars 1 forks source link

Setting Error in getImageCount() #5

Closed tajmone closed 3 years ago

tajmone commented 4 years ago

I need a clarification about the plugin function getImageCount().

This function is documented as being able to return error, but it's the only function of those that can set error that is also expected to return a value (i.e. the number of frames).

I'm assuming that in case of error the function is also to return false (0), and that it's not enough to just set the error. I'm assuming that, since at least 1 image is expected by PM, a return value of 0 would be considered an error.

If this is the case, it should be mentioned in the Procedure comments.

Se also:

tajmone commented 3 years ago

No! The docs were wrong, this functions doesn't/can't set error! (see Jan's reply at tajmone/pmotion-assets#7)