У нас вы можете посмотреть бесплатно Professional C/C++ - xmacros part 1 - enumerations или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
C/C++ enumerations have some limitations (in comparison with say, Ada, where you get type attributes such as Type'Last for free, for example) but we can make them better, more robust and more maintainable by using the xmacros (cross macros) technique and getting the the pre-processor to generate code for us. In this video tutorial we look at a few of the flaws we may find in production code and how xmacros can improve matters. I had never heard of xmacros until I came across a series of three articles by Andrew Lucas on 'embedded.com' which I would recommend (search for "embedded.com xmacros" to find them). Having found Andrew's articles, I thought the technique seemed promising and when employed found it to be so and have discovered other uses for it some of which will be covered in subsequent tutorials. This video contains an image generated by ChatGPT.