Kim Lillåsowningmymistakes.hashnode.dev·Feb 7, 2024Careful about function-like macro parameter namingI needed to create a function-like macro which set a parameter in a default settings struct, simple enough. struct Settings { unsigned enabled; }; struct Settings defaultSettings; #define SetEnabled(enabled) (defaultSettings.enabled = enabled) ...DiscussC++
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023#define should be used more oftenThe #define directive in C is used for creating macros, constants, and inline functions. Let's go through examples of each: Constants using #define: Defining a constant using #define. #include <stdio.h> // Define a constant #define ...Discussdefine
Anuradha Guptatechno101.hashnode.dev·Dec 14, 2023Unveiling the Power of Macros in C ProgrammingIn the vast landscape of the C programming language, macros stand out as powerful and versatile tools that contribute to the language's flexibility and efficiency. As we delve into the intricacies of macros, it becomes evident that they not only have...DiscussC
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Sep 23, 2023ASM MacrosMacros are a very useful feature of assembly language that allows you to define shortcuts or nicknames for repetitive sequences of assembly instructions. Some key points about macros: Macros are defined using the .MACRO and .ENDM directives. Everyth...DiscussAssembly FundamentalsAssembly
Elucian MoiseforProgramming Languagessagecode.hashnode.dev·Sep 21, 2023ASM SubprogramsSubprograms or subroutines are a useful concept in assembly language programming. They allow breaking down a large program into smaller, manageable parts. Some main types of subprograms in assembly language are: Procedures: These are similar to func...Discussasm
Vishesh Raghuvanshivisheshraghuvanshi.tech·Sep 20, 2023C-Programming Operators and KeywordsOperator An operator is a symbol that performs some operation on one or more operands. Operators are used to assign values, compare values or perform calculations with values. Arithmetic Operators Relational Operators Logical Operators Keywords ...Discuss·4 likesC ProgrammingC
Braden EvansProbraden-evans.hashnode.dev·Aug 24, 2023AutoHotKey Journey: Discovering Task Automation TechniquesAcquiring coding skills can be a challenging yet rewarding experience. In the beginning, I encountered difficulties with JavaScript and strived to mentally organize the components of my programs. My learning approach consists of 80% hands-on practice...Discuss·18 likesautohotkey
Namit Guptanamitgupta.com·Jul 17, 202310 Step Guide: SwiftUI ObservableObject to Observable Macro TransitionIn my last article, I talked about how data flows in SwiftUI. Now, Apple has released something new in iOS 17 - the Observation Framework. This changes how SwiftUI works with data. In this article, we will look at how to use the new Observable Macro ...Discuss·22 likes·693 readsSwiftUI for iOS DevelopmentSwiftUI
Retrieverretriever.hashnode.dev·Jul 5, 2023Under translator under C2Rust Transpile (main_function.rs + sims.rs)! This module provides translation for SIMD operations and expressions. simd.rs pub fn convert_shuffle_vector: 此公共函数的目标是将 shuffle 操作转换为相应的 Rust SIMD 库调用。该函数首先检查输入参数的个数是否符合预期。如果不符合预期,函数将返回错误。接着,它对两个输入向量进行处理,如果这两个向量的类型或长度不同,同样会返回错误。最后,根据各种条件选择合适的 shuf...Discusssimd
Angel Carvajalangelcarvajal.hashnode.dev·Jun 5, 2023Automatización de procesos con Macros en Excel¿Qué son, cómo y cuando utilizar automatización de procesos con Macros en Excel? Introducción La automatización de procesos con macros en Microsoft Excel permite la creación de rutinas programadas que realizan tareas repetitivas de forma rápida y pre...Discuss·50 readsexcel