c-preprocessor
How to tell GCC that input file is assembler even if it's really .c?
I have an unusual situation: I have an assembler file, which has .c extension and I cannot change build scripts, where this file is defined as \"C\" type. However, I can build it with the same GCC opt[详细]
2023-03-23 23:45 分类:问答C\C++ Preprocessor different arg for overloaded macros
I want to realize logging in my project. I have macro, smth like __LOG_TRACE(lg, expr,...) LOG_TRACE_STREAM(lg) <&开发者_JAVA百科lt; expr;[详细]
2023-03-23 10:20 分类:问答Conditional Compilation and compile time evaluation of expressions in ANSI C
I would like to do the following, but the compiler doesn\'t like it: unsigned short foo = 1; // do something with foo[详细]
2023-03-23 02:52 分类:问答Redefining enum enumerators with #define [duplicate]
This question already has answers here: What is the purpose of a these #define within an enum? (5 answers)[详细]
2023-03-22 19:39 分类:问答How do I debug "INT_MAX undeclared" [closed]
This question is unlikely to help any future visitors; it is only relevant to 开发者_如何学编程a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not[详细]
2023-03-22 16:20 分类:问答Uniform way to get object address or NULL in global function
I\'m building a tree-based debug/logging system for C++. Its开发者_如何学C \"user interface\" is a macro which passes user-defined message and call site information (file, line, object address) to sp[详细]
2023-03-22 10:26 分类:问答C2143 C2059 errors with terniary operator
bool xHasReached(double tX, double dstX, bool incX) { return incX ? tX &g开发者_高级运维t; (dstX - (double)EPSILON) : tX < (dstX + (double)EPSILON);}[详细]
2023-03-22 09:04 分类:问答Generate @property implementations with C preprocessor (uppercase a character in the preprocessor)
I may be trying to abuse the preprocessor. I want to see if what I have in mind is even possible. My class has @properties that all have the same bodies. I want to generate these bodies with a prepro[详细]
2023-03-22 01:38 分类:问答ShareKit SHKFacebookSessionProxyURL
I\'m implementing Share开发者_如何学运维Kit in my app. In the SHKConfig.h file, in the section where the Facebook data is inserted, there is a line saying: #define SHKFacebookSessionProxyURL @\"\".[详细]
2023-03-21 15:28 分类:问答iOS >> ShareKit: Twitter & Facebook & Email Doesn't Receive my App Store Link
I\'m implementing ShareKit in my app; I defined in the SHKConfig.h the following definitions: #define SHKMyAppName @\"MyAppName\"[详细]
2023-03-21 11:13 分类:问答