mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 23:08:46 +00:00
add tag print in error in get_type_header_ptr
This commit is contained in:
parent
e4fd3c487a
commit
2a42e1e176
1 changed files with 6 additions and 5 deletions
|
|
@ -481,10 +481,11 @@ lama_type get_type_header_ptr (void *ptr) {
|
||||||
fprintf(stderr, "ERROR: get_type_header_ptr: unknown object header, cur_id=%d", cur_id);
|
fprintf(stderr, "ERROR: get_type_header_ptr: unknown object header, cur_id=%d", cur_id);
|
||||||
raise(SIGINT); // only for debug purposes
|
raise(SIGINT); // only for debug purposes
|
||||||
#else
|
#else
|
||||||
fprintf(stderr,
|
fprintf(
|
||||||
"ERROR: get_type_header_ptr: unknown object header, ptr is %p, "
|
stderr,
|
||||||
"heap size is %d\n",
|
"ERROR: get_type_header_ptr: unknown object header, ptr is %p, tag %i, heap size is %d\n",
|
||||||
ptr,
|
ptr,
|
||||||
|
TAG(*header),
|
||||||
heap.size);
|
heap.size);
|
||||||
#endif
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue