Do not inline error path functions.

This commit is contained in:
Stephen Chung
2021-10-19 20:16:36 +08:00
parent 2334cd8f56
commit 6d31bb0d19
5 changed files with 7 additions and 5 deletions

View File

@@ -481,6 +481,7 @@ impl Engine {
pos: Position,
level: usize,
) -> RhaiResult {
#[inline(never)]
fn make_error(
name: String,
fn_def: &crate::ast::ScriptFnDef,