Function ~string

Synopsis

#include <include/flecs/addons/cpp/utils/string.hpp>

~string()

Description

No description yet.

Source

Lines 21-29 in include/flecs/addons/cpp/utils/string.hpp.

~string() {
    // If flecs is included in a binary but is not used, it is possible that
    // the OS API is not initialized. Calling ecs_os_free in that case could
    // crash the application during exit. However, if a string has been set
    // flecs has been used, and OS API should have been initialized.
    if (m_str) {
        ecs_os_free(m_str);
    }
}