trying to understand

This commit is contained in:
Kulikova Svetlana
2020-10-29 15:16:08 +03:00
parent 601863ebd5
commit 9672ebca02
2 changed files with 1 additions and 5 deletions

View File

@ -100,8 +100,6 @@ int main(int argc, char *argv[])
std::wstring sBuildFile = NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)sBuildFileA.c_str(), (LONG)sBuildFileA.length());
#endif
// NSDoctRenderer::CDocBuilder::Initialize();
if (true)
{
NSDoctRenderer::CDocBuilder oBuilder;
@ -139,7 +137,5 @@ int main(int argc, char *argv[])
oBuilder.Run(sBuildFile.c_str());
}
// NSDoctRenderer::CDocBuilder::Dispose();
return 0;
}

View File

@ -403,7 +403,7 @@ namespace NSDoctRenderer
JSSmart<CJSObject> global_js = context->GetGlobal();
JSSmart<CJSObject> js_objectApi = api_js_maybe_null;
if (js_objectApi->isUndefined())
if (!js_objectApi.IsInit() || js_objectApi->isUndefined())
js_objectApi = global_js->get("Api")->toObject();
bool bIsBreak = false;