Commit 00e61212 authored by Tomasz Dąbrowski's avatar Tomasz Dąbrowski Committed by Yukihiro "Matz" Matsumoto

Safeguard against trying to use C++ exception handling in C code

parent 401ad458
......@@ -7,6 +7,10 @@
#ifndef MRB_THROW_H
#define MRB_THROW_H
#if defined(MRB_ENABLE_CXX_EXCEPTION) && !defined(__cplusplus)
#error Trying to use C++ exception handling in C code
#endif
#if defined(MRB_ENABLE_CXX_EXCEPTION) && defined(__cplusplus)
#define MRB_TRY(buf) do { try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment