Click here to Skip to main content
14,392,909 members

C / C++ / MFC

 
GeneralRe: error C2143 Pin
_Flaviu10-Oct-19 20:47
Member_Flaviu10-Oct-19 20:47 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 1:29
Member_Flaviu11-Oct-19 1:29 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 1:55
mveRichard MacCutchan11-Oct-19 1:55 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 2:08
Member_Flaviu11-Oct-19 2:08 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 2:24
mveRichard MacCutchan11-Oct-19 2:24 
GeneralRe: error C2143 Pin
_Flaviu11-Oct-19 5:28
Member_Flaviu11-Oct-19 5:28 
GeneralRe: error C2143 Pin
Richard MacCutchan11-Oct-19 6:04
mveRichard MacCutchan11-Oct-19 6:04 
GeneralRe: error C2143 Pin
leon de boer15-Oct-19 3:58
Memberleon de boer15-Oct-19 3:58 
test_and_clear is a macro you can't use it as a function, macros don't return things without hijinx Smile | :)

GCC has a thing called a statement expression
Using the GNU Compiler Collection (GCC): Statement Exprs[^]

However I strong suggestly you don't do it just create a proper function (that is after all what you are trying to write) and inline it if speed is an issue.
In vino veritas

AnswerRe: error C2143 Pin
David Crow10-Oct-19 11:44
MemberDavid Crow10-Oct-19 11:44 
AnswerRe: error C2143 Pin
Daniel Pfeffer11-Oct-19 5:47
professionalDaniel Pfeffer11-Oct-19 5:47 
GeneralRe: error C2143 Pin
_Flaviu13-Oct-19 0:44
Member_Flaviu13-Oct-19 0:44 
GeneralRe: error C2143 Pin
_Flaviu13-Oct-19 0:46
Member_Flaviu13-Oct-19 0:46 
QuestionHow can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 12:55
Memberarnold_w9-Oct-19 12:55 
QuestionRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 22:41
mveRichard MacCutchan9-Oct-19 22:41 
AnswerRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 22:54
Memberarnold_w9-Oct-19 22:54 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 23:10
mveRichard MacCutchan9-Oct-19 23:10 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w9-Oct-19 23:20
Memberarnold_w9-Oct-19 23:20 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
Richard MacCutchan9-Oct-19 23:36
mveRichard MacCutchan9-Oct-19 23:36 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w10-Oct-19 0:00
Memberarnold_w10-Oct-19 0:00 
AnswerRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
CPallini10-Oct-19 4:03
mveCPallini10-Oct-19 4:03 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
arnold_w10-Oct-19 5:27
Memberarnold_w10-Oct-19 5:27 
GeneralRe: How can I have several hundred of #if defined(XXX) ... #endif in an easy-to-read table format? Pin
CPallini10-Oct-19 7:12
mveCPallini10-Oct-19 7:12 
QuestionProblem with AlphaBlend. Pin
Member 126614649-Oct-19 7:57
MemberMember 126614649-Oct-19 7:57 
QuestionRe: Problem with AlphaBlend. Pin
Richard MacCutchan9-Oct-19 9:49
mveRichard MacCutchan9-Oct-19 9:49 
AnswerRe: Problem with AlphaBlend. Pin
Member 126614649-Oct-19 10:09
MemberMember 126614649-Oct-19 10:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.