¡@

Home 

c++ Programming Glossary: macro

Is gcc4.7 buggy about regular expressions? [duplicate]

http://stackoverflow.com/questions/12530406/is-gcc4-7-buggy-about-regular-expressions

maybe it should have been disabled and required a macro or built time option to enable it but that ship sailed long..

What is an undefined reference/unresolved external symbol error and how do I fix it?

http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix

comments . SNIP Preprocessing directives are executed macro invocations are expanded and _Pragma unary operator expressions..

What is the difference between NULL, '\0' and 0

http://stackoverflow.com/questions/1296843/what-is-the-difference-between-null-0-and-0

pointer constant. Additionally to help readability the macro NULL is provided in the header file stddef.h . Depending upon..

Why aren't my include guards preventing recursive inclusion and multiple symbol definitions?

http://stackoverflow.com/questions/14909997/why-arent-my-include-guards-preventing-recursive-inclusion-and-multiple-symbol

will meet the directive #ifndef A_H . Since the macro A_H has not yet been defined it will keep processing the following.. text. The subsequent directive #defines A_H defines the macro A_H . Then the preprocessor will meet the directive #include.. will meet the directive #ifndef B_H . Since the macro B_H has not yet been defined it will keep processing the following..

Do-While and if-else statements in C/C++ macros

http://stackoverflow.com/questions/154136/do-while-and-if-else-statements-in-c-c-macros

While and if else statements in C C macros In many C C macros I'm seeing the code of the macro wrapped.. While and if else statements in C C macros In many C C macros I'm seeing the code of the macro wrapped in what seems like.. C C macros In many C C macros I'm seeing the code of the macro wrapped in what seems like a meaningless do while loop. Here..

What is the difference between #include <filename> and #include “filename”?

http://stackoverflow.com/questions/21593/what-is-the-difference-between-include-filename-and-include-filename

as in normal text. Each identifier currently defined as a macro name is replaced by its replacement list of preprocessing tokens...

What are the rules about using an underscore in a C++ identifier?

http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

Reserved in any scope including for use as implementation macros identifiers beginning with an underscore and an uppercase letter.. file scope in both the ordinary and tag name spaces. Each macro name in any of the following subclauses including the future.. the future library directions is reserved for use as a macro name and as an identifier with file scope in the same name space..

What are all the common undefined behaviour that a C++ programmer should know about? [closed]

http://stackoverflow.com/questions/367633/what-are-all-the-common-undefined-behaviour-that-a-c-programmer-should-know-ab

directive on the left side of a function like macro definition Dynamically generating the defined token in a #if..

Is there a way to instantiate objects from a string holding their class name?

http://stackoverflow.com/questions/582331/is-there-a-way-to-instantiate-objects-from-a-string-holding-their-class-name

DerivedB reg DerivedB You could decide to create a macro for the registration #define REGISTER_DEC_TYPE NAME static DerivedRegister..

size of int, long, etc

http://stackoverflow.com/questions/589575/size-of-int-long-etc

size in bytes from that and the value of the CHAR_BIT macro that defines the number of bits in a byte in all but the most..

What is the difference between _tmain() and main() in C++?

http://stackoverflow.com/questions/895827/what-is-the-difference-between-tmain-and-main-in-c

Microsoft specific. TCHAR is not a standard C type it is a macro defined in windows.h. wmain and _tmain are also defined by Microsoft..

Build issue with MSVS 2010 and the C++ standard

http://stackoverflow.com/questions/10578017/build-issue-with-msvs-2010-and-the-c-standard

Identifiers with block scope declared in one block 1 024 . Macro identifiers simultaneously defined in one translation unit 65..

Automatically stop Visual C++ 2008 build at first compile error?

http://stackoverflow.com/questions/134796/automatically-stop-visual-c-2008-build-at-first-compile-error

s soon as build window is updated . Visual Studio Tools Macros Macro IDE... or ALT F11 Private Sub OutputWindowEvents_OnPaneUpdated.. as build window is updated . Visual Studio Tools Macros Macro IDE... or ALT F11 Private Sub OutputWindowEvents_OnPaneUpdated..

Is it safe to read an integer variable that's being concurrently modified without locking?

http://stackoverflow.com/questions/1350994/is-it-safe-to-read-an-integer-variable-thats-being-concurrently-modified-withou

MSDN Memory and Synchronization issues MemoryBarrier Macro edit please also see drhirsch's comments. share improve this..

Why are preprocessor macros evil and what are the alternatives?

http://stackoverflow.com/questions/14041453/why-are-preprocessor-macros-evil-and-what-are-the-alternatives

c 11 macros preprocessor share improve this question Macros are just like any other tool a hammer used in a murder is not.. and suggest alternatives 1. You can't debug macros. 2. Macro expansion can lead to strange side effects. 3. Macros have no.. 2. Macro expansion can lead to strange side effects. 3. Macros have no namespace so if you have a macro that clashes with..

Simple Linux Signal Handling

http://stackoverflow.com/questions/17942034/simple-linux-signal-handling

and both are termination signals I am quoting for one . Macro int SIGKILL The SIGKILL signal is used to cause immediate program..

C++ concatenating __FILE__ and __LINE__ macros?

http://stackoverflow.com/questions/19343205/c-concatenating-file-and-line-macros

you will get string __LINE__ instead of a number. Macro S2 __LINE__ expands __LINE__ to a line number then we pass the..

C Macro definition to determine big endian or little endian machine?

http://stackoverflow.com/questions/2100331/c-macro-definition-to-determine-big-endian-or-little-endian-machine

Macro definition to determine big endian or little endian machine..

Macro / keyword which can be used to print out method name?

http://stackoverflow.com/questions/2192680/macro-keyword-which-can-be-used-to-print-out-method-name

keyword which can be used to print out method name __FILE__..

Netbeans or Eclipse for C++? [closed]

http://stackoverflow.com/questions/308450/netbeans-or-eclipse-for-c

variables and is even applied to code that's #ifdef'ed out Macro expansion that can step you through each level of macro application..

“Step over” when debugging multithreaded programs in Visual Studio

http://stackoverflow.com/questions/336628/step-over-when-debugging-multithreaded-programs-in-visual-studio

though I was unable to locate that information from the Macro IDE. Here they are and good luck bug hunting To use these macros.. hunting To use these macros in Visual Studio 1. Open the Macro IDE from the Menu select Tools Macros Macro IDE... 2. Add a.. Studio 1. Open the Macro IDE from the Menu select Tools Macros Macro IDE... 2. Add a new Code File from the Menu select Project..

calling code stored in the heap from vc++

http://stackoverflow.com/questions/397064/calling-code-stored-in-the-heap-from-vc

conventions here . Also you can still obtain Microsoft's Macro Assembler MASM here . I recommend writing your machine code..

Maximum number of parameters in function declaration

http://stackoverflow.com/questions/4582012/maximum-number-of-parameters-in-function-declaration

Identifiers with block scope declared in one block 1 024 . Macro identifiers simultaneously defined in one translation unit 65..

Are Variadic macros nonstandard?

http://stackoverflow.com/questions/4786649/are-variadic-macros-nonstandard

track them down and fix them. But recently after adding a Macro with variadic arguments Clang told me the following from a dummy..

C/C++ Macro string concatenation

http://stackoverflow.com/questions/5256313/c-c-macro-string-concatenation

C Macro string concatenation #define STR1 s #define STR2 1 #define.. have STR3 s1 You can do this by passing args to another Macro function. But is there a direct way c c macros share improve..

Macro to replace C++ operator new

http://stackoverflow.com/questions/619467/macro-to-replace-c-operator-new

to replace C operator new Is it possible to create macros to..

Why is one loop so much slower than two loops?

http://stackoverflow.com/questions/8547778/why-is-one-loop-so-much-slower-than-two-loops

which can be disabled by not defining the TBB_TIMING Macro. It shows FLOP s for different values of n . c c performance..

Escaping a # symbol in a #define macro?

http://stackoverflow.com/questions/1135822/escaping-a-symbol-in-a-define-macro

For example I want to do something like this #define MACRO name #include name##foo And use it thus MACRO Test Which will.. this #define MACRO name #include name##foo And use it thus MACRO Test Which will expand to #include Testfoo The humble # sign..

How do I make a C++ macro behave like a function?

http://stackoverflow.com/questions/163365/how-do-i-make-a-c-macro-behave-like-a-function

Let's say that for some reason you need to write a macro MACRO X Y . Let's assume there's a good reason you can't use an inline.. value. Example 1 This should work as expected. if x y MACRO x y do_something Example 2 This should not result in a compiler.. 2 This should not result in a compiler error. if x y MACRO x y else MACRO y x x y Example 3 This should not compile. do_something..

How to avoid backslash escape when writing regular expression in C/C++

http://stackoverflow.com/questions/3978351/how-to-avoid-backslash-escape-when-writing-regular-expression-in-c-c

w d which is ugly to eye. Is there any method to avoid it MACRO are also acceptable. c c regex share improve this question..

Trick : filling array values using macros (code generation)

http://stackoverflow.com/questions/6080129/trick-filling-array-values-using-macros-code-generation

BOOST_PP_ENUM is a macro which takes 3 arguments n MACRO data n an integer MACRO a macro accepting 3 arguments z i data.. a macro which takes 3 arguments n MACRO data n an integer MACRO a macro accepting 3 arguments z i data data some data of your.. It will then be replaced by n successive invocations of MACRO separated by commas MACRO z 0 data MACRO z 1 data ... MACRO..

C++ macro/metaprogram to determine number of members at compile time

http://stackoverflow.com/questions/6844605/c-macro-metaprogram-to-determine-number-of-members-at-compile-time

type names here #define SEQ foo bar baz #define MACRO r data i elem boost mpl at types boost mpl int_ i type elem.. types boost mpl int_ i type elem BOOST_PP_SEQ_FOR_EACH_I MACRO 0 SEQ int main Foo a a.foo I didn't test it so there could be..

__FILE__ macro shows full path

http://stackoverflow.com/questions/8487986/file-macro-shows-full-path

macro shows full path The standard predefined MACRO __FILE__ available in C shows the full path to the file. Is..