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

Function AddInclude

source/common/scripting/frontend/zcc_parser.cpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97static FString ZCCTokenName(int terminal);
98void AddInclude(ZCC_ExprConstant *node)
99{
100 assert(node->Type == TypeString);
101
102 FScriptPosition pos(*node);
103
104 FString path = ResolveIncludePath(*node->StringVal, pos.FileName.GetChars());
105
106 if (Includes.Find(path) >= Includes.Size())
107 {
108 Includes.Push(path);
109 IncludeLocs.Push(pos);
110 }
111}
112
113#include "zcc-parse.h"
114#include "zcc-parse.c"

Callers

nothing calls this directly

Calls 5

ResolveIncludePathFunction · 0.85
GetCharsMethod · 0.45
FindMethod · 0.45
SizeMethod · 0.45
PushMethod · 0.45

Tested by

no test coverage detected