Top "Macros" questions

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

how to expand VC++ macro references using Visual Studio?

Rather than right clicking on the macro identifier and then on "go to definition", is it possible to expand macro …

visual-studio visual-c++ macros preprocessor
PS1 env variable does not work on mac

I have a script(not written by myself) which shows the git branch/svn branch in my command prompt. Does …

git macros ps1
Path of current document in [Libre|Open]Office

How can I determine the path of the currently open document in an OpenOffice or LibreOffice document? I want to …

macros libreoffice libreoffice-basic
Can I redefine a C++ macro then define it back?

I am using both the JUCE Library and a number of Boost headers in my code. Juce defines "T" as …

c++ boost macros c-preprocessor
C/C++: How to use the do-while(0); construct without compiler warnings like C4127?

I'm often use do-while(0) construct in my #defines, for the reasons described in this answer. Also I'm trying to use …

c++ c visual-c++ macros compiler-warnings
Java: Is there support for macros?

I am just curious on how people solve this. I often write the same type of code all the time. …

java macros boilerplate
What's the int macro for stdin?

stdin is of type FILE *, is there a fd macro for it? Or do I need to convert it myself?

c macros stdin
Python-like C++ decorators

Are there ways to decorate functions or methods in C++ like in python style? @decorator def decorated(self, *args, **kwargs): …

python c++ function macros decorator
C Preprocessor Macro equivalent for Python

I use to define macros (not just constants) in C like #define loop(i,a,b) for(i=a; i&…

python macros preprocessor
Driving distance between two coordinates

I have a long list of locations in excel format and I need to calculate driving distance between these locations …

macros coordinates driving-distance