Переделана структура проекта
This commit is contained in:
24
examples/core/01_endian/endian.cpp
Normal file
24
examples/core/01_endian/endian.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <myx/core/config.hpp>
|
||||
#include <myx/core/endian_types.hpp>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
//NOLINTNEXTLINE
|
||||
#define CMLIB_PROJECT_NAME "myxlib"
|
||||
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
beint64 bi = 1;
|
||||
int64_t bii = reinterpret_cast< int64_t* >( &bi )[0]; //NOLINT
|
||||
qDebug() << hex << bi << bii;
|
||||
|
||||
leint64 li = 1;
|
||||
int64_t lii = reinterpret_cast< int64_t* >( &li )[0]; //NOLINT
|
||||
qDebug() << hex << li << lii;
|
||||
|
||||
return( 0 );
|
||||
} // main
|
Reference in New Issue
Block a user