Skip to content

Commit b4b3558

Browse files
committed
Back to __customStack and add an indication that it's custom
1 parent 00f44e4 commit b4b3558

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ bool maybe_print_custom_stack( vdynamic* ret ) {
138138
while( exct->kind == HOBJ ) {
139139
if( exct->obj->super == NULL ) {
140140
if( ucmp(exct->obj->name, USTR("haxe.Exception")) == 0 ) {
141-
hl_field_lookup* f = hl_lookup_find(exct->obj->rt->lookup, exct->obj->rt->nlookup, hl_hash_gen(USTR("_hx_customStack"), true));
141+
hl_field_lookup* f = hl_lookup_find(exct->obj->rt->lookup, exct->obj->rt->nlookup, hl_hash_gen(USTR("__customStack"), true));
142142
if( f == NULL || f->field_index < 0 ) break;
143143
vdynamic* customStack = *(vdynamic**)((char*)(ret) + f->field_index);
144144
if( customStack != NULL ) {
145-
uprintf(USTR("%s\n"), hl_to_string(customStack));
145+
uprintf(USTR("Custom stack:%s\n"), hl_to_string(customStack));
146146
return true;
147147
}
148148
}

0 commit comments

Comments
 (0)