mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
fatalerror() prints a given string to stdout and exits(5). It cannot format text, so there was a string temptext used with sprintf() to format text and pass it to fatalerror(). errx() can format text, and it prints to stderr. As a bonus, this fixes the linking warnings from use of sprintf().
18 lines
272 B
C
18 lines
272 B
C
#ifndef ASMOTOR_LINK_MAIN_H
|
|
#define ASMOTOR_LINK_MAIN_H
|
|
|
|
#include "link/types.h"
|
|
|
|
extern void PrintUsage(void);
|
|
extern SLONG fillchar;
|
|
extern char smartlinkstartsymbol[256];
|
|
|
|
enum eOutputType {
|
|
OUTPUT_GBROM,
|
|
OUTPUT_PSION2
|
|
};
|
|
|
|
extern enum eOutputType outputtype;
|
|
|
|
#endif
|