[eina-cxx] Fixed EFL_CXX_THROW not defined

Fixed errors of EFL_CXX_THROW not defined when #include'ing specific
eina C++ headers.
This commit is contained in:
Felipe Magno de Almeida 2014-10-23 18:06:13 -02:00
parent 7acdf2b1dd
commit 8240676b01
9 changed files with 17 additions and 7 deletions

View File

@ -1,12 +1,5 @@
#ifndef EINA_HH_
#define EINA_HH_
#if defined ( EFL_CXX_NO_EXCEPTIONS )
# define EFL_CXX_THROW(x) std::abort()
#else
# define EFL_CXX_THROW(x) throw (x)
#endif
/**
* @file
* @brief Eina C++

View File

@ -3,6 +3,7 @@
#include <Eina.h>
#include <eina_error.hh>
#include <eina_throw.hh>
#include <memory>
#include <iterator>

View File

@ -3,6 +3,8 @@
#include <Eina.h>
#include <eina_throw.hh>
#include <system_error>
/**

View File

@ -5,6 +5,7 @@
#include <eina_clone_allocators.hh>
#include <eina_type_traits.hh>
#include <eina_range_types.hh>
#include <eina_throw.hh>
#include <memory>
#include <iterator>

View File

@ -8,6 +8,7 @@
#include <eina_accessor.hh>
#include <eina_eo_base_fwd.hh>
#include <eina_iterator.hh>
#include <eina_throw.hh>
#include <memory>
#include <iterator>

View File

@ -3,6 +3,7 @@
#include <Eina.h>
#include <eina_type_traits.hh>
#include <eina_throw.hh>
#include <cstring>
#include <stdexcept>

View File

@ -3,6 +3,7 @@
#include <Eina.h>
#include <eina_error.hh>
#include <eina_throw.hh>
#include <memory>
#include <iterator>

View File

@ -0,0 +1,9 @@
#ifndef EFL_CXX_THROW
#ifdef EFL_CXX_NO_EXCEPTIONS
# define EFL_CXX_THROW(x) std::abort()
#else
# define EFL_CXX_THROW(x) throw x
#endif
#endif

View File

@ -5,6 +5,7 @@
#include <eina_stringshare.hh>
#include <eina_type_traits.hh>
#include <eina_throw.hh>
/**
* @addtogroup Eina_Cxx_Data_Types_Group