MCPcopy Create free account
hub / github.com/ZDoom/Raze / defsparser

Function defsparser

source/core/defparser.cpp:1922–1940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1920};
1921
1922static void defsparser(FScanner& sc)
1923{
1924 int iter = 0;
1925
1926 sc.SetNoFatalErrors(true);
1927 sc.SetNoOctals(true);
1928 while (1)
1929 {
1930 if (++iter >= 50)
1931 {
1932 Printf(".");
1933 iter = 0;
1934 }
1935 FScriptPosition pos = sc;
1936 if (!sc.GetString()) return;
1937 int index = sc.MustMatchString(&basetokens[0].text, sizeof(basetokens[0]));
1938 if (index != -1) basetokens[index].handler(sc, pos);
1939 }
1940}
1941
1942void loaddefinitionsfile(TilesetBuildInfo& info, const char* fn, bool cumulative, bool maingame)
1943{

Callers 2

performIncludeFunction · 0.85
loaddefinitionsfileFunction · 0.85

Calls 5

PrintfFunction · 0.85
SetNoFatalErrorsMethod · 0.80
SetNoOctalsMethod · 0.80
MustMatchStringMethod · 0.80
GetStringMethod · 0.45

Tested by

no test coverage detected