namespace rgpot::details

Overview

namespace details {
 
// global functions
 
void check_status(rgpot_status_t status);
 
} // namespace details

Detailed Documentation

Global Functions

void check_status(rgpot_status_t status)

Checks a status code and throws rgpot::Error on failure.

If status is RGPOT_SUCCESS this function returns immediately. Otherwise it calls rgpot_last_error() to retrieve the Rust-side error message, prepends a category prefix, and throws rgpot::Error.

Parameters:

status

The status code returned by a C API function.

rgpot::Error

when status!= RGPOT_SUCCESS.

Returns:

Void.