This commit is contained in:
Anthony J. Bentley
2017-01-24 01:18:28 -07:00
2 changed files with 11 additions and 1 deletions

View File

@@ -30,6 +30,6 @@ extern struct sSymbol *pPCSymbol;
extern bool oDontExpandStrings;
#define MAXMACROARGS 256
#define MAXINCPATHS 16
#define MAXINCPATHS 128
#endif /* // ASM_H */

View File

@@ -179,6 +179,16 @@ fstk_Dump(void)
void
fstk_AddIncludePath(char *s)
{
if (NextIncPath == MAXINCPATHS) {
fatalerror("Too many include directories passed from command line");
return;
}
if (strlen(s) > _MAX_PATH) {
fatalerror("Include path too long '%s'",s);
return;
}
strcpy(IncludePaths[NextIncPath++], s);
}