WarnLib: New library for testing API that emits warnings
[platform/upstream/gobject-introspection.git] / tests / scanner / warnlib.c
1 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2
3 #include "config.h"
4
5 #include "warnlib.h"
6
7 GQuark
8 warnlib_unpaired_error_quark (void)
9 {
10   return g_quark_from_static_string ("warnlib-unpaired-error");
11 }
12
13 gboolean
14 warnlib_throw_unpaired (GError **error)
15 {
16   g_set_error_literal (error, warnlib_unpaired_error_quark (), 0,
17                        "Unpaired error");
18   return FALSE;
19 }
20