CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
cycles_detection.h
1
2#pragma once
3
4#include "shared_ptr.h"
5#include "detail.h"
6
7#include <iostream>
8#include <utility>
9#include <type_traits>
10
12#define DEFINE_GET_SHARED_MEMBERS(containerName) \
13 void GetSharedMembers(System::Object::shared_members_type& result) const override \
14 { \
15 Object::GetSharedMembers(result); \
16 result.PopulateSharedMembers(#containerName "[]", containerName); \
17 }
18
19#if defined(ENABLE_CYCLES_DETECTION_EXT)
20
21namespace System { namespace Debug {
22
23class ExternalObjectCollector;
24
25}}
26
27namespace System { namespace Details {
28
30 void ASPOSECPP_SHARED_API ObjectCollection_Begin();
36 void ASPOSECPP_SHARED_API ObjectCollection_End(bool show_all = false,
37 unsigned int* total_objects = nullptr,
38 unsigned int* circular_refs = nullptr,
39 std::ostream& output = std::cout);
40
41} } // namespace System::Details
42
43#endif // ENABLE_CYCLES_DETECTION_EXT
@ Debug
Record debugging information.
Definition: db_command.h:9