From cd119fc8618813b6d3745d3217df0153d2aaac3e Mon Sep 17 00:00:00 2001 From: Mackenzie Clark Date: Wed, 27 Mar 2019 08:36:53 -0700 Subject: [PATCH] make string multi-line --- lib/emscripten/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/emscripten/src/lib.rs b/lib/emscripten/src/lib.rs index 980bfc86dee..4d41cc40d47 100644 --- a/lib/emscripten/src/lib.rs +++ b/lib/emscripten/src/lib.rs @@ -738,7 +738,10 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject pub fn nullfunc(ctx: &mut Ctx, _x: u32) { use crate::process::abort_with_message; debug!("emscripten::nullfunc_i {}", _x); - abort_with_message(ctx, "Invalid function pointer called with signature 'i'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)"); + abort_with_message(ctx, "Invalid function pointer. Perhaps this is an invalid value \ + (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an \ + incorrect type, which will fail? (it is worth building your source files with -Werror (\ + warnings are errors), as warnings can indicate undefined behavior which can cause this)"); } /// The current version of this crate