Jun 8, 2014

[C++] Uncaught Exceptions

gotw : Uncaught Exceptions
cppref : std::uncaught_exception
 
inline int UncaughtException() noexcept
{
*(reinterpret_cast<int*>(
 static_cast<char*>(
  static_cast<void*>(
   __cxxabivl::__cxa_get_globals()))
    + sizeof(void*)));
}


http://vimeo.com/channels/ndc2014/97329153

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.