Skip to content

Commit

Permalink
changed to byondapi_stack_trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Jul 15, 2024
1 parent e66a376 commit 5873f34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/byondapi-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32> = ::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();
Expand Down Expand Up @@ -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<u32> = ::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();
Expand Down
2 changes: 1 addition & 1 deletion crates/byondapi-rs-test/dm_project/dm_project.dme
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5873f34

Please sign in to comment.