mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
parent
bb9481c305
commit
d790162ce3
@ -149,8 +149,10 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo& locp)
|
|||||||
|
|
||||||
/* StaticGetFieldId */
|
/* StaticGetFieldId */
|
||||||
std::cout << "\t" << "static int StaticGetFieldId(const String& name)" << std::endl
|
std::cout << "\t" << "static int StaticGetFieldId(const String& name)" << std::endl
|
||||||
<< "\t" << "{" << std::endl
|
<< "\t" << "{" << std::endl;
|
||||||
<< "\t\t" << "int offset = ";
|
|
||||||
|
if (!klass.Fields.empty()) {
|
||||||
|
std::cout << "\t\t" << "int offset = ";
|
||||||
|
|
||||||
if (!klass.Parent.empty())
|
if (!klass.Parent.empty())
|
||||||
std::cout << "TypeImpl<" << klass.Parent << ">::StaticGetFieldCount()";
|
std::cout << "TypeImpl<" << klass.Parent << ">::StaticGetFieldCount()";
|
||||||
@ -158,6 +160,7 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo& locp)
|
|||||||
std::cout << "0";
|
std::cout << "0";
|
||||||
|
|
||||||
std::cout << ";" << std::endl << std::endl;
|
std::cout << ";" << std::endl << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
std::map<int, std::vector<std::pair<int, std::string> > > jumptable;
|
std::map<int, std::vector<std::pair<int, std::string> > > jumptable;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user