#NEWLINE# def sentry_record_alignment( self , rectyp , attr ) : #NEWLINE# #INDENT# '\n        Assumes offset starts from a properly aligned location\n        ' #NEWLINE# if self . strict_alignment : #NEWLINE# #INDENT# offset = rectyp . offset ( attr ) #NEWLINE# elemty = rectyp . typeof ( attr ) #NEWLINE# align = self . get_abi_alignment ( self . get_data_type ( elemty ) ) #NEWLINE# if ( offset % align ) : #NEWLINE# #INDENT# msg = '{rec}.{attr} of type {type} is not aligned' . format ( rec = rectyp , attr = attr , type = elemty ) #NEWLINE# raise TypeError ( msg )