This commit is contained in:
Anthony J. Bentley committed 2017-01-24 01:18:28 -07:00
commit ab19dab899
2 files changed
+11 -1

No files matched your search

+1 -1
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 */
+10
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);
}