\hypertarget{group__Eina__Safety__Checks__Group}{\section{Safety Checks}
\label{group__Eina__Safety__Checks__Group}\index{Safety Checks@{Safety Checks}}
}


Safety checks are a set of macros to check for parameters or values that should never happen, it is similar in concept to assert(), but will log and return instead of abort() your program.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N}(exp)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}(exp, val)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O}(exp, label)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}(exp)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}(exp, val)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O}(exp, label)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N}(exp)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}(exp, val)
\item 
\#define {\bfseries E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O}(exp, label)
\item 
\hypertarget{group__Eina__Safety__Checks__Group_ga1a066aa3069f7e43279021cc1e378fac}{\#define {\bfseries E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+L\+L}(...)}\label{group__Eina__Safety__Checks__Group_ga1a066aa3069f7e43279021cc1e378fac}

\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{group__Eina__Safety__Checks__Group_gac05b7f845f432d50b2935453bbbeef6c}{\hyperlink{group__Eina__Error__Group_ga95b3cbb33e987e7d92a81ea785001686}{Eina\+\_\+\+Error} {\bfseries E\+I\+N\+A\+\_\+\+E\+R\+R\+O\+R\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+F\+A\+I\+L\+E\+D}}\label{group__Eina__Safety__Checks__Group_gac05b7f845f432d50b2935453bbbeef6c}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Safety checks are a set of macros to check for parameters or values that should never happen, it is similar in concept to assert(), but will log and return instead of abort() your program. 

\begin{DoxyWarning}{Warning}
{\ttfamily eina\+\_\+safety\+\_\+checks.\+h} should only be included by source files, after all other includes and before the source file specific includes. By source file specific includes we mean those that define the functions that are being checked. The reason for such complexity is the trick to avoid compiler optimizations. If compilers are told that some given function will never receive {\ttfamily N\+U\+L\+L} (\hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+L\+L()}, then compiler will emit a warning if it detects so (good!) but will remove any checks for that condition as it believes it will never happen, removing all safety checks! By including {\ttfamily eina\+\_\+safety\+\_\+checks.\+h} it will redefine \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+L\+L()} to void and compiler warning will not be emitted, but checks will be there. The files already processed with the old macro \hyperlink{group__Eina__Types__Group_ga1a066aa3069f7e43279021cc1e378fac}{E\+I\+N\+A\+\_\+\+A\+R\+G\+\_\+\+N\+O\+N\+N\+U\+L\+L()} will still work and emit the warnings.
\end{DoxyWarning}

\begin{DoxyCode}
\textcolor{comment}{// all these files will emit warning from EINA\_ARG\_NONNULL()}
\textcolor{preprocessor}{#include <Evas.h>}  \textcolor{comment}{// third party headers}
\textcolor{preprocessor}{#include <Ecore.h>}

\textcolor{preprocessor}{#include <eina\_safety\_checks.h>}
\textcolor{comment}{// all these files below will NOT emit warning from EINA\_ARG\_NONNULL(),}
\textcolor{comment}{// but this is required to have the functions defined there to be checked}
\textcolor{comment}{// for NULL pointers}
\textcolor{preprocessor}{#include "my\_functions1.h"}
\textcolor{preprocessor}{#include "my\_functions2.h"}
\end{DoxyCode}


Since these cases should never happen, one may wantto keep safety checks enabled during tests but disable then during deploy, not doing any checks at all. This is a common requirement for embedded systems. Whenever to check or not should be set during compile time by using {\ttfamily --disable-\/safety-\/checks} or {\ttfamily --enable-\/safety-\/checks} options to {\ttfamily configure} script.

Whenever these macros capture an error, \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{E\+I\+N\+A\+\_\+\+L\+O\+G\+\_\+\+E\+R\+R()} will be called.

\begin{DoxySeeAlso}{See also}
E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N(), E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L() and other macros. 
\end{DoxySeeAlso}


\subsection{Macro Definition Documentation}
\hypertarget{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N(
\begin{DoxyParamCaption}
\item[{}]{exp}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_ga1ccf8538d0015b3801ff642e6156843a}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}((exp) == NULL))                                  \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" == NULL"}); \(\backslash\)
            return;                                                       \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{val}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_gab2b07061fc6500dedd9cd41c8d16f95d}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}((exp) == NULL))                                  \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" == NULL"}); \(\backslash\)
            return (val);                                                 \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_ga4e028a0c5bd5743068c1c3f2302dc0e8}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+N\+U\+L\+L\+\_\+\+G\+O\+T\+O(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{label}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_ga4e028a0c5bd5743068c1c3f2302dc0e8}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}((exp) == NULL))                                  \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" == NULL"}); \(\backslash\)
            goto label;                                                   \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N(
\begin{DoxyParamCaption}
\item[{}]{exp}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_ga8b89fd35e22beece51443e29fe585935}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(exp))                                            \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is true"}); \(\backslash\)
            return;                                                       \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{val}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_ga1dbe0d7e3c6b10f4bd49a2a132d73269}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(exp))                                            \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is true"}); \(\backslash\)
            return val;                                                   \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_gaa083dd2da7053e9b7b39cdc72326d56d}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+T\+R\+U\+E\+\_\+\+G\+O\+T\+O(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{label}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_gaa083dd2da7053e9b7b39cdc72326d56d}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                      \(\backslash\)
    \{                                                                     \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(exp))                                            \(\backslash\)
         \{                                                                \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is true"}); \(\backslash\)
            goto label;                                                   \(\backslash\)
         \}                                                                \(\backslash\)
    \}                                                                     \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_ga4c65e34fc0099bb68833d44ad02fb724}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N(
\begin{DoxyParamCaption}
\item[{}]{exp}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_ga4c65e34fc0099bb68833d44ad02fb724}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                       \(\backslash\)
    \{                                                                      \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(!(exp)))                                          \(\backslash\)
         \{                                                                 \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is false"}); \(\backslash\)
            return;                                                        \(\backslash\)
         \}                                                                 \(\backslash\)
    \}                                                                      \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_gae7cf7b1d66fa9022242e09fd53c06bb2}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+R\+E\+T\+U\+R\+N\+\_\+\+V\+A\+L(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{val}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_gae7cf7b1d66fa9022242e09fd53c06bb2}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                       \(\backslash\)
    \{                                                                      \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(!(exp)))                                          \(\backslash\)
         \{                                                                 \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is false"}); \(\backslash\)
            return val;                                                    \(\backslash\)
         \}                                                                 \(\backslash\)
    \}                                                                      \(\backslash\)
  while (0)
\end{DoxyCode}
\hypertarget{group__Eina__Safety__Checks__Group_gafa24bc421bcbbf70e5512619863fb3fc}{\index{Safety Checks@{Safety Checks}!E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O}}
\index{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O@{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O}!Safety Checks@{Safety Checks}}
\subsubsection[{E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\+I\+N\+A\+\_\+\+S\+A\+F\+E\+T\+Y\+\_\+\+O\+N\+\_\+\+F\+A\+L\+S\+E\+\_\+\+G\+O\+T\+O(
\begin{DoxyParamCaption}
\item[{}]{exp, }
\item[{}]{label}
\end{DoxyParamCaption}
)}}\label{group__Eina__Safety__Checks__Group_gafa24bc421bcbbf70e5512619863fb3fc}
{\bfseries Value\+:}
\begin{DoxyCode}
\textcolor{keywordflow}{do}                                                                       \(\backslash\)
    \{                                                                      \(\backslash\)
       if (\hyperlink{group__Eina__Types__Group_ga70675a75a5fb3e9a51d5af985a1fd3aa}{EINA\_UNLIKELY}(!(exp)))                                          \(\backslash\)
         \{                                                                 \hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{\(\backslash\)}
\hyperlink{group__Eina__Log__Group_ga2e33caeeeb6051526c01b7fea4d6c91b}{            EINA\_LOG\_ERR}(\textcolor{stringliteral}{"%s"}, \textcolor{stringliteral}{"safety check failed: "} # exp \textcolor{stringliteral}{" is false"}); \(\backslash\)
            goto label;                                                    \(\backslash\)
         \}                                                                 \(\backslash\)
    \}                                                                      \(\backslash\)
  while (0)
\end{DoxyCode}
