::fprintf(stderr, "error. (line: \d)\n", __LINE__);
とか