Top "Macros" questions

***DO NOT USE for VBA / MS-Office languages.

iOS How to detect iPhone X, iPhone 6 plus, iPhone 6, iPhone 5, iPhone 4 by macro?

How to detect device model by macro? i had using something like this but the result on the simulator alway …

iphone macros detect
Inline functions vs Preprocessor macros

How does an inline function differ from a preprocessor macro?

c++ c macros inline
Jinja2 inline comments

How can I put comments inside Jinja2 argument list declaration ? Everything I have tried gives an error: jinja2.exceptions.TemplateSyntaxError: …

python macros jinja2 comments
Retrieving a c++ class name programmatically

I was wondering if it is possible in C++ to retrieve the name of a class in string form without …

c++ class macros
What does the Q_OBJECT macro do? Why do all Qt objects need this macro?

I just started using Qt and noticed that all the example class definitions have the macro Q_OBJECT as the …

c++ qt macros
Header guards in C++ and C

At LearnCpp.com | 1.10 — A first look at the preprocessor. Under Header guards, there are those code snippets: add.h: #include "…

c++ c macros header-files include-guards
How can I convert from degrees to radians?

I am trying to convert this Obj-C code to Swift code but I don't know what the equivalent of this …

ios objective-c macos swift macros
Are typedef and #define the same in c?

I wonder if typedef and #define are the same in c?

c macros c-preprocessor typedef
Can I have macros in Java source files

In my program I'm reading integers form console many times. Every time, I need to type this line. new Scanner(…

java macros
Which Cross Platform Preprocessor Defines? (__WIN32__ or __WIN32 or WIN32 )?

I often see __WIN32, WIN32 or __WIN32__. I assume that this depends on the used preprocessor (either one from visual …

c++ macros c-preprocessor