1 /* EINA - EFL data type library
2 * Copyright (C) 2008 Gustavo Sverzut Barbieri
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library;
16 * if not, see <http://www.gnu.org/licenses/>.
23 #include "eina_private.h"
24 #include "eina_error.h"
26 #include "eina_safety_checks.h"
28 /*============================================================================*
30 *============================================================================*/
32 /*============================================================================*
34 *============================================================================*/
38 * @brief Shut down the safety checks module.
40 * @return #EINA_TRUE on success, #EINA_FALSE on failure.
42 * This function shuts down the error module set up by
43 * eina_safety_checks_init(). It is called by eina_shutdown().
45 * @see eina_shutdown()
48 eina_safety_checks_shutdown(void)
53 /*============================================================================*
55 *============================================================================*/
61 EAPI Eina_Error EINA_ERROR_SAFETY_FAILED = 0;
63 static const char EINA_ERROR_SAFETY_FAILED_STR[] = "Safety check failed.";
71 * @brief Initialize the safety checks module.
73 * @return #EINA_TRUE on success, #EINA_FALSE on failure.
75 * This function sets up the safety checks module of Eina. It is
76 * called by eina_init().
81 eina_safety_checks_init(void)
83 EINA_ERROR_SAFETY_FAILED = eina_error_msg_static_register(
84 EINA_ERROR_SAFETY_FAILED_STR);