File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -171,10 +171,9 @@ void AppendExceptionLine(Environment* env,
171
171
GetHumanReadableProcessName (&name);
172
172
173
173
fprintf (stderr,
174
- " %s: %s:%u:% s%s Assertion `%s' failed.\n " ,
174
+ " %s: %s:%s%s Assertion `%s' failed.\n " ,
175
175
name,
176
- info.filename ,
177
- info.linenum ,
176
+ info.file_line ,
178
177
info.function ,
179
178
*info.function ? " :" : " " ,
180
179
info.message );
Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ void LowMemoryNotification();
88
88
// The reason that Assert() takes a struct argument instead of individual
89
89
// const char*s is to ease instruction cache pressure in calls from CHECK.
90
90
struct AssertionInfo {
91
- const char * filename;
92
- unsigned int linenum;
91
+ const char * file_line; // filename:line
93
92
const char * message;
94
93
const char * function;
95
94
};
@@ -129,7 +128,7 @@ void DumpBacktrace(FILE* fp);
129
128
/* Make sure that this struct does not end up in inline code, but */ \
130
129
/* rather in a read-only data section when modifying this code. */ \
131
130
static const node::AssertionInfo args = { \
132
- __FILE__, __LINE__, #expr, PRETTY_FUNCTION_NAME \
131
+ __FILE__ " : " STRINGIFY ( __LINE__) , #expr, PRETTY_FUNCTION_NAME \
133
132
}; \
134
133
node::Assert (args); \
135
134
} \
You can’t perform that action at this time.
0 commit comments