FictionTools/z88dk/src/sccz80/codegen.c
/*
 *  Emit a LINE opcode for assembler
 *  error reporting
 */
Emit a LINE opcode for assembler
error reporting
Emit a LINE opcode for assembler error reporting
void EmitLine(int line)
{
    char filen[FILENAME_LEN];
    char  *ptr;
    snprintf(filen, sizeof(filen),"%s", Filename[0] == '\"'? Filename + 1 : Filename);
    if ( (ptr = strrchr(filen,'\"')) != NULL ) {
        *ptr = 0;
    }
    if (ISASM(ASM_Z80ASM) && (c_cline_directive || c_intermix_ccode)) {
        outfmt("\tC_LINE\t%d,\"%s\"\n", line, filen);
    }
}
void EmitLine ( int line ) { char filen [ FILENAME_LEN ] ; char * ptr ; snprintf ( filen , sizeof ( filen ) , " " , Filename [ 0 ] == ' \" ' ? Filename + 1 : Filename ) ; if ( ( ptr = strrchr ( filen , ' \" ' ) ) != NULL ) { * ptr = 0 ; } if ( ISASM ( ASM_Z80ASM ) && ( c_cline_directive || c_intermix_ccode ) ) { outfmt ( " \t \t \" \" \n " , line , filen ) ; } }
Emit a LINE opcode for assembler
  error reporting
Emit a LINE opcode for assembler error reporting