0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00
construct/include/ircd/vg.h

31 lines
904 B
C
Raw Normal View History

// The Construct
//
// Copyright (C) The Construct Developers, Authors & Contributors
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_VG_H
/// Valgrind memcheck hypercall suite
namespace ircd::vg
{
extern const bool active;
size_t errors() noexcept;
bool defined(const const_buffer &) noexcept;
void set_defined(const const_buffer &) noexcept;
void set_undefined(const const_buffer &) noexcept;
void set_noaccess(const const_buffer &) noexcept;
}
namespace ircd::vg::stack
{
uint add(const mutable_buffer &) noexcept;
void del(const uint &id) noexcept;
}