diff options
Diffstat (limited to 'source3/include/ntdomain.h')
-rw-r--r-- | source3/include/ntdomain.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 08c8163cda..ebd24c9dd6 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -37,6 +37,18 @@ * A bunch of stuff that was put into smb.h * in the NTDOM branch - it didn't belong there. */ + +#define CHECK_STRUCT(data) \ +{ \ + if ((data)->struct_start != 0xfefefefe || \ + (data)->struct_end != 0xdcdcdcdc) \ + { \ + DEBUG(0,("uninitialised structure (%s, %d)\n", \ + FUNCTION_MACRO, __LINE__)); \ + sleep(30); \ + } \ +} + typedef struct _prs_struct { |