%{ #include #include %} function is_err:long(_ptr:long) %{ THIS->__retvalue = (long)IS_ERR((char *)THIS->_ptr); CATCH_DEREF_FAULT(); %}