Skip to content

Commit b6dfa8b

Browse files
committed
macros in modules
1 parent 44c04ec commit b6dfa8b

46 files changed

Lines changed: 95 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sources/Core/Data/Data.ixx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
module;
2-
3-
#include "utils/utils_macros.h"
42
#include "Serialization/serialization_defines.h"
53

64
export module Data;

sources/Core/FileSystem/FileDepender.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module;
22

3-
#include "utils/utils_macros.h"
3+
44
export module FileDepender;
55

66
import Utils;

sources/Core/FileSystem/FileSystem.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module;
22

3-
#include "utils/utils_macros.h"
3+
44
export module FileSystem;
55

66
import Utils;

sources/Core/FileSystem/ResourceManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
#include "utils/utils_macros.h"
2+
33

44
#include "Serialization/Serializer.h"
55
import Utils;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import FlowGraph;
2+
import serialization;
3+
4+
BOOST_CLASS_EXPORT_KEY(FlowGraph::window);
5+
BOOST_CLASS_EXPORT_KEY(FlowGraph::Node);
6+
BOOST_CLASS_EXPORT_KEY(FlowGraph::input);
7+
BOOST_CLASS_EXPORT_KEY(FlowGraph::output);
8+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph);
9+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph_input);
10+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph_output);
11+
BOOST_CLASS_EXPORT_KEY(FlowGraph::parameter_type);
12+
BOOST_CLASS_EXPORT_KEY(FlowGraph::strict_parameter);
13+
14+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::window);
15+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::Node);
16+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::input);
17+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::output);
18+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::graph);
19+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::graph_input);
20+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::graph_output);
21+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::parameter_type);
22+
BOOST_CLASS_EXPORT_IMPLEMENT(FlowGraph::strict_parameter);

sources/Core/FlowGraph/FlowGraph.ixx

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,17 @@ export
831831

832832
}
833833

834+
/*
835+
BOOST_CLASS_EXPORT_KEY(FlowGraph::window);
836+
BOOST_CLASS_EXPORT_KEY(FlowGraph::Node);
837+
BOOST_CLASS_EXPORT_KEY(FlowGraph::input);
838+
BOOST_CLASS_EXPORT_KEY(FlowGraph::output);
839+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph);
840+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph_input);
841+
BOOST_CLASS_EXPORT_KEY(FlowGraph::graph_output);
842+
BOOST_CLASS_EXPORT_KEY(FlowGraph::parameter_type);
843+
BOOST_CLASS_EXPORT_KEY(FlowGraph::strict_parameter);
844+
*/
834845
module:private;
835846

836847
namespace FlowGraph
@@ -1776,20 +1787,3 @@ namespace FlowGraph
17761787
}
17771788

17781789

1779-
1780-
BOOST_CLASS_EXPORT(FlowGraph::window);
1781-
1782-
BOOST_CLASS_EXPORT(FlowGraph::Node);
1783-
BOOST_CLASS_EXPORT(FlowGraph::input);
1784-
BOOST_CLASS_EXPORT(FlowGraph::output);
1785-
1786-
BOOST_CLASS_EXPORT(FlowGraph::graph);
1787-
1788-
BOOST_CLASS_EXPORT(FlowGraph::graph_input);
1789-
BOOST_CLASS_EXPORT(FlowGraph::graph_output);
1790-
1791-
BOOST_CLASS_EXPORT(FlowGraph::parameter_type);
1792-
1793-
1794-
BOOST_CLASS_EXPORT(FlowGraph::strict_parameter);
1795-

sources/Core/Math/Math.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "Math.h"
2+
import serialization;
3+
4+
BOOST_CLASS_EXPORT_KEY(AABB)
5+
BOOST_CLASS_EXPORT_KEY(Frustum)
6+
BOOST_CLASS_EXPORT_KEY(Plane)
7+
BOOST_CLASS_EXPORT_KEY(Primitive)
8+
BOOST_CLASS_EXPORT_KEY(Ray)
9+
BOOST_CLASS_EXPORT_KEY(Sphere)
10+
11+
12+
BOOST_CLASS_EXPORT_IMPLEMENT(AABB)
13+
BOOST_CLASS_EXPORT_IMPLEMENT(Frustum)
14+
BOOST_CLASS_EXPORT_IMPLEMENT(Plane)
15+
BOOST_CLASS_EXPORT_IMPLEMENT(Primitive)
16+
BOOST_CLASS_EXPORT_IMPLEMENT(Ray)
17+
BOOST_CLASS_EXPORT_IMPLEMENT(Sphere)

sources/Core/Math/Primitives/AABB.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ private:
4646
module: private;
4747

4848

49-
//BOOST_CLASS_EXPORT(AABB)
49+
5050

5151

5252
AABB::AABB(Primitive* other) :min(other->get_min()), max(other->get_max())

sources/Core/Math/Primitives/Frustum.ixx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,5 +146,5 @@ std::shared_ptr<Primitive> Frustum::clone()
146146
return std::shared_ptr<Primitive>(new Frustum(*this));
147147
};
148148

149-
//BOOST_CLASS_EXPORT(Frustum)
149+
150150

sources/Core/Math/Primitives/Plane.ixx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,3 @@ Plane::operator Vector<vec4_t<float>>() const
8585
return vec4(n, d);
8686
}
8787

88-
//BOOST_CLASS_EXPORT(Plane)

0 commit comments

Comments
 (0)