view regexParser/error.cc @ 275:8879eb8c64a8

remove segmentation fault
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Sat, 30 Jan 2016 19:06:41 +0900
parents ecf70fb215a5
children
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>

void errorMassege(const char* ers,int lineNum,const char* filename) {
    fprintf(stderr, "%s:%d: error: %s\n",filename,lineNum,ers);
    exit(-1);
}