chromium/sandbox/linux/seccomp-bpf/die.h

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_LINUX_SECCOMP_BPF_DIE_H__
#define SANDBOX_LINUX_SECCOMP_BPF_DIE_H__

#include "sandbox/sandbox_export.h"

namespace sandbox {

// This is the main API for using this file. Prints a error message and
// exits with a fatal error. This is not async-signal safe.
#define SANDBOX_DIE(m)

// An async signal safe version of the same API. Won't print the filename
// and line numbers.
#define RAW_SANDBOX_DIE(m)

// Adds an informational message to the log file or stderr as appropriate.
#define SANDBOX_INFO(m)

class SANDBOX_EXPORT Die {};

}  // namespace sandbox

#endif  // SANDBOX_LINUX_SECCOMP_BPF_DIE_H__