Show
Ignore:
Timestamp:
16/03/10 12:59:52 (2 years ago)
Author:
westram
Message:
  • added COMPILE_ASSERT
  • assert correct pointersizes for PT-server
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/stable_5.0/PROBE/probe_tree.hxx

    r5919 r6521  
    44#include <bits/wordsize.h> 
    55#endif // DARWIN 
     6 
     7#ifndef STATIC_ASSERT_H 
     8#include <static_assert.h> 
     9#endif 
    610 
    711#define PTM_magic             0xf4 
     
    226230#ifdef ARB_64 
    227231 
     232COMPILE_ASSERT(sizeof(void*) == sizeof(unsigned long)); 
     233 
    228234# define PT_READ_PNTR(ptr,my_int_i)                                     \ 
    229235    do {                                                                \ 
     
    240246#else 
    241247/* not ARB_64 */ 
     248 
     249COMPILE_ASSERT(sizeof(void*) == sizeof(unsigned int)); 
    242250 
    243251# define PT_READ_PNTR(ptr,my_int_i)  PT_READ_INT(ptr, my_int_i)