summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/except.h
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/include/pj/except.h')
-rw-r--r--pjlib/include/pj/except.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pjlib/include/pj/except.h b/pjlib/include/pj/except.h
index 2f1f9ddd..610f4626 100644
--- a/pjlib/include/pj/except.h
+++ b/pjlib/include/pj/except.h
@@ -245,6 +245,11 @@ pj_throw_exception_(pj_exception_id_t id) PJ_ATTR_NORETURN
**
****************************************************************************/
+/* To include this file, the source file must be compiled as
+ * C++ code!
+ */
+#ifdef __cplusplus
+
class TPjException
{
public:
@@ -260,6 +265,8 @@ public:
while (0)
#define PJ_GET_EXCEPTION() pj_excp_.code_
+#endif /* __cplusplus */
+
#else
/*****************************************************************************
**