DebugServer2
Loading...
Searching...
No Matches
Process.h
1//
2// Copyright (c) 2014-present, Facebook, Inc.
3// All rights reserved.
4//
5// This source code is licensed under the University of Illinois/NCSA Open
6// Source License found in the LICENSE file in the root directory of this
7// source tree. An additional grant of patent rights can be found in the
8// PATENTS file in the same directory.
9//
10
11#pragma once
12
13#include "DebugServer2/Base.h"
14
15#if defined(OS_LINUX)
16#include "DebugServer2/Target/Linux/Process.h"
17#elif defined(OS_WIN32)
18#include "DebugServer2/Target/Windows/Process.h"
19#elif defined(OS_FREEBSD)
20#include "DebugServer2/Target/FreeBSD/Process.h"
21#elif defined(OS_DARWIN)
22#include "DebugServer2/Target/Darwin/Process.h"
23#else
24#error "Target not supported."
25#endif
26
27namespace ds2 {
28namespace Target {
29
30#if defined(OS_LINUX)
31using Linux::Process;
32#elif defined(OS_WIN32)
33using Windows::Process;
34#elif defined(OS_FREEBSD)
35using FreeBSD::Process;
36#elif defined(OS_DARWIN)
37using Darwin::Process;
38#else
39#error "Target not supported."
40#endif
41} // namespace Target
42} // namespace ds2