Skip to content

Commit

Permalink
clearer, more informative MAGICNO error
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Dec 2, 2024
1 parent a4a687a commit 4fcac22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Basic/lib/PDL/Core/pdl.h.PL
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ typedef struct {
#define PDL_CHKMAGIC_GENERAL(it,this_magic,type) \
if((it)->magicno != this_magic) \
return pdl_make_error(PDL_EFATAL, \
"INVALID " type " MAGICNO, got hex=%p (%lu)%s\n", \
it,(unsigned long)((it)->magicno), \
"INVALID MAGICNO in " type "=%p got 0x%lx instead of 0x%lx%s", \
it,(unsigned long)((it)->magicno),this_magic, \
((it)->magicno) == PDL_CLEARED_MAGICNO ? " (cleared)" : "" \
); \
else (void)0
Expand Down

0 comments on commit 4fcac22

Please sign in to comment.