v6502
The MOS 6502 Virtual Machine and Toolchain Infrastructure
Functions | Variables
error.h File Reference

Assembler error handling. More...

Go to the source code of this file.

Functions

void as6502_fatal (const char *reason) __attribute((noreturn))
 Called for fatal errors during assembly, such as internal memory failures.
 
void as6502_error (unsigned long loc, unsigned long len, const char *reason,...)
 Called for code errors detected during assembly, which prevent producing a binary.
 
void as6502_warn (unsigned long loc, unsigned long len, const char *reason,...)
 Called for code warnings detected during assembly, which don't prevent producing a binary.
 
void as6502_note (unsigned long lineNumber, const char *reason,...)
 Called for code notation which pertain to preceding errors or warnings, this can reference other code.
 
void as6502_underline (const char *str, unsigned long loc, unsigned long len)
 This function outputs an underline annotation for a given character range.
 

Variables

const char * currentLineText
 Current line number.
 
unsigned long currentLineNum
 Current line number.
 
const char * currentFileName
 Current file name.
 
unsigned int currentErrorCount
 Current total number of errors encountered.
 

Detailed Description

Assembler error handling.