MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / InitParser

Method InitParser

source/YamlHelper.cpp:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include <sstream>
30
31int YamlHelper::InitParser(const char* pPathname)
32{
33 m_hFile = fopen(pPathname, "r");
34 if (m_hFile == NULL)
35 {
36 return 0;
37 }
38
39 if (!yaml_parser_initialize(&m_parser))
40 {
41 return 0;
42 }
43
44 // Note: C/C++ > Pre-Processor: YAML_DECLARE_STATIC;
45 yaml_parser_set_input_file(&m_parser, m_hFile);
46
47 return 1;
48}
49
50void YamlHelper::FinaliseParser(void)
51{

Callers 2

Snapshot_LoadState_v2Function · 0.80

Calls 2

yaml_parser_initializeFunction · 0.85

Tested by

no test coverage detected