ekjstm / permafrost

Automatically exported from code.google.com/p/permafrost
0 stars 0 forks source link

SWIG typemaps follow different error convention than libhdf5 #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HDF functions return values >=0 to indicate that the function has completed
without error. The SWIG typemaps return values =0 to indicate an error
condition.

Typemaps should be adjusted to return values <0 e.g. when
GetIntArrayElements returns null.

This should not normally be an issue, but it does need to be addressed for
proper error handling in unusual conditions.

Original issue reported on code.google.com by solomon....@gmail.com on 22 Dec 2008 at 10:01