ExternalBytes.st
changeset 23931 e56b90ae68bd
parent 22898 c77cc993e3d8
child 23932 01800d8961bd
equal deleted inserted replaced
23930:4a6dd956e708 23931:e56b90ae68bd
   686     RETURN (__mkSmallInteger( (char *)&dummy.l - (char *)&dummy.c ));
   686     RETURN (__mkSmallInteger( (char *)&dummy.l - (char *)&dummy.c ));
   687 %}
   687 %}
   688     "
   688     "
   689      ExternalBytes longAlignment
   689      ExternalBytes longAlignment
   690     "
   690     "
       
   691 !
       
   692 
       
   693 nativeByteOrder
       
   694     "returns the underlying CPU's native byte order as
       
   695      a symbol; either #msb or #lsb"
       
   696 
       
   697 %{ /* NOCONTEXT */
       
   698 #ifndef __SCHTEAM__
       
   699 # ifdef __LSBFIRST__
       
   700     RETURN ( @symbol(lsb) );
       
   701 # else
       
   702     RETURN ( @symbol(msb) );
       
   703 # endif
       
   704 #endif
       
   705 %}.
       
   706     self primitiveFailed.
       
   707 
       
   708     "
       
   709      ExternalBytes nativeByteOrder
       
   710     "
       
   711 
       
   712     "Created: / 17-03-2019 / 12:57:28 / Claus Gittinger"
   691 !
   713 !
   692 
   714 
   693 pointerAlignment
   715 pointerAlignment
   694     "return the alignement of pointers in structs and unions"
   716     "return the alignement of pointers in structs and unions"
   695 
   717