|
rpm-build |
c487f7 |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* Copyright (C) 2017 Red Hat, Inc.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This library is free software; you can redistribute it and/or
|
|
rpm-build |
c487f7 |
* modify it under the terms of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License as published by the Free Software Foundation; either
|
|
rpm-build |
c487f7 |
* version 2 of the License, or (at your option) any later version.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This library is distributed in the hope that it will be useful,
|
|
rpm-build |
c487f7 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
rpm-build |
c487f7 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
rpm-build |
c487f7 |
* Lesser General Public License for more details.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* You should have received a copy of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License along with this library; if not, write to the
|
|
rpm-build |
c487f7 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
rpm-build |
c487f7 |
* Boston, MA 02111-1307, USA.
|
|
rpm-build |
c487f7 |
*/
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#pragma once
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
typedef GError _GLnxTestAutoError;
|
|
rpm-build |
c487f7 |
static inline void
|
|
rpm-build |
c487f7 |
_glnx_test_auto_error_cleanup (_GLnxTestAutoError *autoerror)
|
|
rpm-build |
c487f7 |
{
|
|
rpm-build |
c487f7 |
g_assert_no_error (autoerror);
|
|
rpm-build |
c487f7 |
/* We could add a clear call here, but no point...we'll have aborted */
|
|
rpm-build |
c487f7 |
}
|
|
rpm-build |
c487f7 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC(_GLnxTestAutoError, _glnx_test_auto_error_cleanup);
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#define _GLNX_TEST_DECLARE_ERROR(local_error, error) \
|
|
rpm-build |
c487f7 |
g_autoptr(_GLnxTestAutoError) local_error = NULL; \
|
|
rpm-build |
c487f7 |
GError **error = &local_error
|