Skip to content

Commit a9d649c

Browse files
authored
Merge pull request #75 from ReflectCxx/develop
Reflection metadata JSON path logged.
2 parents 84dae64 + cbe149a commit a9d649c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CxxRTLTypeRegistration/src/TestMirrorProvider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
#include <iostream>
23
#include <filesystem>
34

45
#include "TestMirrorProvider.h"
@@ -241,6 +242,8 @@ namespace test_mirror
241242
static const auto _ = [&]()
242243
{
243244
const std::string pathStr = std::filesystem::current_path().string() + "/MyReflection.json";
245+
std::cout << "\n[ OUTPUT] test_mirror::cxx::mirror()==> dumping metadata as JSON."
246+
<< "\n file path: " << pathStr << std::endl;
244247
rtl::CxxMirrorToJson::dump(cxx_mirror, pathStr);
245248
return 0;
246249
}();

ReflectionTemplateLib/detail/src/CxxReflection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ namespace rtl {
177177
if (givenRecordId != actualRecordId) {
178178
std::cout << "\n[WARNING] Member function pointer does not belong to the class being registered."
179179
<< "\n Member function: " << pFunction.getFunctionName() << "(" << pFunction.getFunctorIds()[0].getSignatureStr() << ")"
180-
<< "\n This function is ignored and not registered.\n\n";
180+
<< "\n This function is ignored and not registered.\n";
181181
return false;
182182
}
183183
return true;

0 commit comments

Comments
 (0)