From 5873f344667d26969475387625d67a29e204c0f1 Mon Sep 17 00:00:00 2001 From: Katherine Kiefer Date: Mon, 15 Jul 2024 14:18:38 +1000 Subject: [PATCH] changed to byondapi_stack_trace --- crates/byondapi-macros/src/lib.rs | 8 ++++---- crates/byondapi-rs-test/dm_project/dm_project.dme | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/byondapi-macros/src/lib.rs b/crates/byondapi-macros/src/lib.rs index 7620861..30b9e84 100644 --- a/crates/byondapi-macros/src/lib.rs +++ b/crates/byondapi-macros/src/lib.rs @@ -142,8 +142,8 @@ pub fn bind(attr: TokenStream, item: TokenStream) -> TokenStream { let error_string = ::byondapi::value::ByondValue::try_from(::std::format!("{e:?}")).unwrap(); ::byondapi::global_call::call_global_id({ static STACK_TRACE: ::std::sync::OnceLock = ::std::sync::OnceLock::new(); - *STACK_TRACE.get_or_init(|| ::byondapi::byond_string::str_id_of("stack_trace") - .expect("byondapi-rs implicitly expects stack_trace to exist as a proc for error reporting purposes, this proc doesn't exist!") + *STACK_TRACE.get_or_init(|| ::byondapi::byond_string::str_id_of("byondapi_stack_trace") + .expect("byondapi-rs implicitly expects byondapi_stack_trace to exist as a proc for error reporting purposes, this proc doesn't exist!") ) } ,&[error_string]).unwrap(); @@ -260,8 +260,8 @@ pub fn bind_raw_args(attr: TokenStream, item: TokenStream) -> TokenStream { let error_string = ::byondapi::value::ByondValue::try_from(::std::format!("{e:?}")).unwrap(); ::byondapi::global_call::call_global_id({ static STACK_TRACE: ::std::sync::OnceLock = ::std::sync::OnceLock::new(); - *STACK_TRACE.get_or_init(|| ::byondapi::byond_string::str_id_of("stack_trace") - .expect("byondapi-rs implicitly expects stack_trace to exist as a proc for error reporting purposes, this proc doesn't exist!") + *STACK_TRACE.get_or_init(|| ::byondapi::byond_string::str_id_of("byondapi_stack_trace") + .expect("byondapi-rs implicitly expects byondapi_stack_trace to exist as a proc for error reporting purposes, this proc doesn't exist!") ) } ,&[error_string]).unwrap(); diff --git a/crates/byondapi-rs-test/dm_project/dm_project.dme b/crates/byondapi-rs-test/dm_project/dm_project.dme index 1a90d04..9bbbe16 100644 --- a/crates/byondapi-rs-test/dm_project/dm_project.dme +++ b/crates/byondapi-rs-test/dm_project/dm_project.dme @@ -1,7 +1,7 @@ #include "test_map.dmm" #include "bindings.dm" -/proc/stack_trace(msg) +/proc/byondapi_stack_trace(msg) CRASH(msg) /turf/turf_type_a