0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 05:18:54 +01:00
construct/include/ircd/vg.h
Jason Volk f6bc11b76a ircd::vg: Add stack register/deregister to interface.
ircd::vg: Use extern const bool for active(); minor reorg.
2020-10-16 14:32:06 -07:00

30 lines
904 B
C++

// 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;
}