With C/C++ macros it's quite easy to generated long constructs automatically. For example, if I want a huge set of methods to not ever throw exceptions (a must for COM-exposed methods) I can do something like this:  #define BEGIN_COM_METHOD\     try{  #define END_COM_METHOD\     return S_OK;\     } catch( exception&amp; ) {\         // set IErrorInfo here\         return E_FAIL;\     }   to make such macros manageable one can use "\" character to make the macro definition multiline and more readable.  The problem is sometimes code with such constructs will not compile - something will not expand as expected and invalid code will be present to the compiler. Compiler usually have "generate preprocessed file" option to show the developer the preprocessing result. But in the preprocessed file the macro is expanded into one line and the result is barely readable.  Is it possible to make the preprocessor to keep the linebreaks present in the macro definition?
How do I write a cpp macro which expands to include newlines?
The type initializer for 'Emgu.CV.CvInvoke' threw an exception If anyone who use Emgu openCv wrapper in .net 3.5 framework,please tell me why this exception appears,Its inner exception is unable to load cxcore.dll. Force "portrait" orientation mode I'm a mathematician interested in abstract QFT.  I'm trying to undersand why, under certain (all?) circumstances, we must have $T^2 = -1$ rather than $T^2 = +1$, where $T$ is the time reversal operator.  I understand from the Wikipedia article that requiring that energy stay positive forces $T$ to be represented by an anti-unitary operator.  But I don't see how this forces $T^2=-1$.  (Or maybe it doesn't force it, it merely allows it?)  Here's another version of my question.  There are two distinct double covers of the Lie group $O(n)$ which restrict to the familiar $Spin(n)\to SO(n)$ cover on $SO(n)$; they are called $Pin_+(n)$ and $Pin_-(n)$.  If $R\in O(n)$ is a reflection and $\tilde{R}\in Pin_\pm(n)$ covers $R$, then $\tilde{R}^2 = \pm 1$.  So saying that $T^2=-1$ means we are in $Pin_-$ rather than $Pin_+$.  (I'm assuming Euclidean signature here.)  My question (version 2): Under what circumstances are we forced to use $Pin_-$ rather than $Pin_+$ here?  (I posted a  on physics.stackexchange.com last week, but there were no replies.)    EDIT: Thanks to the half-integer spin hint in the comments below, I was able to do a more effective web search.  If I understand correctly, Kramer's theorem says that for even-dimensional (half integer spin) representations of the Spin group, $T$ must satisfy $T^2=-1$, while for the odd-dimensional representations (integer spin), we have $T^2=1$.  I guess at this point it becomes a straightforward question in representation theory: Given an irreducible representation of $Spin(n)$, we can ask whether it is possible to extend it to $Pin_-(n)$ (or $Pin_+(n)$) so that the lifted reflections $\tilde R$ (e.g. $T$) act as an anti-unitary operator. Need help with proof for Dedekind cuts on $\mathbb{Q}^+$ I am working on a proof about Dedekind cuts on the positive rational numbers. I have been stuck for a while on the following point and would appreciate any help.  Given $x\in \mathbb{Q}^+$ such that $x^2&lt;2$, how to find $y\in \mathbb{Q}^+$ such $y&gt;x$ and $y^2&lt;2$? Normally, when a user edits one of my posts, I receive a notification like on the following depending on the case   User has editing privilege (click to visit revision)   Users' edit is submitted to review queue (click to visit review queue)     The above notifications were received instantaneously (or less than 30 minutes, in case caching is supposed to be the answer) as the edit was done/suggested.  But I did not receive any such notification today (yet) on an edit made on my . I think it is a possible bug and should be looked at. The recent notifications list I have is shown below: If $f(x)$ and $g(x)$ are two periodic functions, that is, $f(x+T_1)=f(x)$ and $g(x+T_2)=g(x)$ for every $x \in \Bbb R$. Now that $\displaystyle\lim_{x\to\infty}(f(x)-g(x))=0$.  Conjecture: $f(x) \equiv g(x)$. If humans were able to catch all sun energy reaching the earth for their use, will the climate change? I guess that energy will be used up and, at the end, will contribute to heat the earth, so I see no big differences...  please explain your point of view. Verify is tautology by using logical equivalence Verify is tautology by using logical equivalence:  $$((p ∨ q) ∧ (p → r) ∧ (∼ r)) → q$$  by showing what laws are using, step by step explanation needed.  Logical equivalence: de morgan's laws, commutativity, associativity, double negative, distribution, idempotent, absorption, identity, universal bound, negation  Rules of inference: modus ponens, modus tollens, generalisation, specialisation, conjunction, ellimination, transivity, proof by division into cases, contradiction  What I got so far:  I need to prove   $$((p ∨ q) ∧ (p → r) ∧ (∼ r)) → q ≡ \text{tautology}$$ Since $p → r$ same as $∼ p ∨ r$: $$((p ∨ q) ∧ (p → r) ∧ (∼ r)) → q ≡ ((p ∨ q) ∧ (∼ p ∨ r ) ∧ (∼ r)) → q$$  I am stuck here limit of integral $n\int_{0}^{1} x^n f(x) \text{d}x$ as $n\rightarrow \infty$ How can I mirror one of the screens in a 3-monitor setup? Does $\sum_{n=1}^{\infty} \sin(\pi(2+\sqrt{3})^n)$ converge? Converge absolutely? Per the title, does $\displaystyle\sum_{n=1}^{\infty} \sin(\pi(2+\sqrt{3})^n)$ converge? Converge absolutely?   I'm stuck on this question, not sure how to approach it.  Thank you! I have a dll that was written in c++, I need to use this dll in my c# code. After searching I found that using P/Invoke would give me access to the function I need, but these functions are defined with in a class and use non-static private member variables. So I need to be able to create an instance of this class to properly use the functions. How can I gain access to this class so that I can create an instance? I have been unable to find a way to do this.   I guess I should note that the c++ dll is not my code. Python BeautifulSoup findAll by "class" attribute Looking for a scifi novel with advanced pheromone technology How can I prevent my mail from being classified as spam? When sending or forwarding emails using a personal or company domain using a  website or email client, how do I prevent the email from being incorrectly marked as spam? Are planets actually moving in elliptical orbits around the Sun or do they move in circular orbits around their center of mass? In every derivation of Kepler's Laws that I have seen, we assume that the sun is stationary. However, in other places I have read that celestial bodies move about their barycentre (center of mass). So are planets actually moving in elliptical orbits around the Sun or do they move in circular orbits around their center of mass? I have been building models with categorical data for a while now and when in this situation I basically default to using scikit-learn's LabelEncoder function to transform this data prior to building a model.  I understand the difference between OHE, LabelEncoder and DictVectorizor in terms of what they are doing to the data, but what is not clear to me is when you might choose to employ one technique over another.    Are there certain algorithms or situations in which one has advantages/disadvantages with respect to the others? create mesh then add vertices to it in python I am so confused by, for example, "People love their life or lives." How to send a header using a HTTP request through a cURL call? I wish to send a header to my Apache server on a Linux box.  How can I achieve this via a cURL call?