yasm_error_occurred().
svn path=/trunk/yasm/; revision=1699
}
}
+yasm_warn_class
+yasm_warn_occurred(void)
+{
+ if (STAILQ_EMPTY(&yasm_warns))
+ return YASM_WARN_NONE;
+ return STAILQ_FIRST(&yasm_warns)->wclass;
+}
+
void
yasm_warn_set_va(yasm_warn_class wclass, const char *format, va_list va)
{
*/
void yasm_warn_clear(void);
+/** Get the first warning indicator. YASM_WARN_NONE is returned if no warning
+ * has been set. Note that as YASM_WARN_NONE is 0, the return value can also
+ * be treated as a boolean value.
+ * \return First warning indicator.
+ */
+yasm_warn_class yasm_warn_occurred(void);
+
/** Add a warning indicator (va_list version).
* \param wclass warning class
* \param format printf format string