blob: 038ec321f324b99660aa82ca16a35908a241fb18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include "../util/record-utility.h"
#include "slang-entrypoint.h"
namespace SlangRecord
{
EntryPointRecorder::EntryPointRecorder(SessionRecorder* sessionRecorder, slang::IEntryPoint* entryPoint, RecordManager* recordManager)
: IComponentTypeRecorder(entryPoint, recordManager),
m_sessionRecorder(sessionRecorder),
m_actualEntryPoint(entryPoint)
{
SLANG_RECORD_ASSERT(m_actualEntryPoint != nullptr);
slangRecordLog(LogLevel::Verbose, "%s: %p\n", __PRETTY_FUNCTION__, entryPoint);
}
ISlangUnknown* EntryPointRecorder::getInterface(const Guid& guid)
{
if(guid == IEntryPointRecorder::getTypeGuid())
{
return static_cast<IEntryPointRecorder*>(this);
}
else
return nullptr;
}
SLANG_NO_THROW slang::FunctionReflection* EntryPointRecorder::getFunctionReflection()
{
return m_actualEntryPoint->getFunctionReflection();
}
}
|