waffle_teardown 3
waffle_teardown Teardown waffle's per-process global state

Waffle Manual

waffle

    #include <waffle.h>

bool `waffle_teardown`

## Description

Feature test macro: `WAFFLE_API_VERSION >= 0x0106`. (See waffle_feature_test_macros 7).

`waffle_teardown()` tears down the per-process global state of the waffle library.

А call to `waffle_teardown()` can fail. In the case it does the caller is advised to use `waffle_error_get_info`, `waffle_error_get_code` and/or `waffle_error_to_string` to retrieve the error. In case of an error that differs from WAFFLE_ERROR_NOT_INITIALIZED the caller should not use the Waffle API as the global state is likely to be in an undetermined/corrupt. In the case of WAFFLE_ERROR_NOT_INITIALIZED one should call `waffle_init()` prior to reusing Waffle.

## Return Value

## Errors

WAFFLE_ERROR_NOT_INITIALIZED

  Waffle has not been initialized with a successful call to `waffle_init()` since the last call to `waffle_teardown()` or the start of the program.

## See Also

- waffle_init 3,
- waffle 7.