mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge branch 'include-cli' of https://github.com/AntonioND/rgbds
This commit is contained in:
@@ -30,6 +30,6 @@ extern struct sSymbol *pPCSymbol;
|
|||||||
extern bool oDontExpandStrings;
|
extern bool oDontExpandStrings;
|
||||||
|
|
||||||
#define MAXMACROARGS 256
|
#define MAXMACROARGS 256
|
||||||
#define MAXINCPATHS 16
|
#define MAXINCPATHS 128
|
||||||
|
|
||||||
#endif /* // ASM_H */
|
#endif /* // ASM_H */
|
||||||
|
|||||||
@@ -179,6 +179,16 @@ fstk_Dump(void)
|
|||||||
void
|
void
|
||||||
fstk_AddIncludePath(char *s)
|
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);
|
strcpy(IncludePaths[NextIncPath++], s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user