preprocessor

Is it possible to do a #define in Adobe Flex?

谁说胖子不能爱 提交于 2019-12-05 06:57:29
I'm looking for a way to do something similar to a c/c++ #define in adobe flex. I'd like to have lots of different paths a project build can take depending on wither or not something was defined. Does such a thing exist in flex? I know there is ways to set global variables but that wont really suit my purpose. being able to have structures with numerous #ifndefined and such is really what i'm in need of. thanks! Actually MXMLC (the compiler in the Flex SDK) does support some limited preprocessor features. You can use them to pass in constant values, or to simulate #ifdef / #ifndef type

Wix 3.5 preprocessor extension - undefined preprocessor function

醉酒当歌 提交于 2019-12-05 06:23:04
问题 I just using Wix 3.5 with Visual Studio 2010, Windows 7. I unable to make a custom Preprocessor Extension run. I create the extension project in .NET 3.5. and copy the compiled dll into Wix 3.5 program files , plus set the Reference Path in the extension project properties but the Wix project build still failed with " undefined preprocessor function " on my extension. Example: Extension project: WixFileVersionExtension (from wixfileversionext.codeplex.com) Wix program files: "C:\Program Files

#warning directive in VB.net

匆匆过客 提交于 2019-12-05 03:25:26
I know the #warning directive does not exist in vb.net... is there anything like it? I want to be able to throw messages (warnings) at compiler time. As far as I've ever been able to find... no. 来源: https://stackoverflow.com/questions/192822/warning-directive-in-vb-net

how do I add preprocessor #define in devenv command line?

孤者浪人 提交于 2019-12-05 00:58:53
Is there a way to add extra preprocessor #define in devenv command line? I am not entirely sure what you mean by vcbuild command line but if you mean the Visual C++ command line compiler then you can add defines by add /Dxxxx, e.g. cl.exe /DSHAREWARE .... Additional answer based on comments: You should be able to set the CL environment variable with the extra preprocessor define: SET CL=/DSHAREWARE devenv .... Mere information can be found at MSDN The #defines are defined in your Visual Studio project file (.dsp or .vcproj file). This is a simple text file. So you could edit the project file

Defining preprocessor symbols for CLion analyzer

我的未来我决定 提交于 2019-12-04 23:53:37
In my project there's a file enclosed in an ifdef preprocessor directive #ifdef SOME_SYMBOL ... entire file ... #endif SOME_SYMBOL is defined by another file that's compiled before this one, and the code works as expected, but the static analyzer isn't aware of this symbol and so it treats SOME_SYMBOL is undefined. The entire file has no syntax highlighting and some of the analysis is just skipped (e.g. syntax error highlighting). Is there a way to tell the analyzer to treat this symbol as defined without defining it in CMakeLists.txt? I don't have the option of defining SOME_SYMBOL in

Pycparser not working on preprocessed code

喜欢而已 提交于 2019-12-04 19:52:33
I need to use pycparser on preprocessed C code (the results produced by 'gcc -E'). However I am currently running into issue that I can't understand or solve. I am using the provided samples year2.c and func_defs.py, which i modified to use a variety of preprocessors and fake libraries to no avail. Maybe some of you can look into this and see if you can reproduce/solve the issue. I will append all necessary code. The errors were generated using year2.c (regular sample file) and year2.i ('gcc -E' output). There was no useable result for the latter while the former worked with both preprocessor

Automatic Semicolon Insertion in JavaScript without parsing [closed]

我的未来我决定 提交于 2019-12-04 12:04:15
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 8 months ago . I'm writing a JavaScript preprocessor which automatically inserts semicolons in places where it's necessary. Don't ask why. Now I know that the general way to tackle this problem is to write a JavaScript parser and add semicolons where necessary according to the rules in the specs. However I don't want to do so for the following reasons: I don't want to write a full

Tool/Parser for preprocessor #if statements?

折月煮酒 提交于 2019-12-04 11:39:01
问题 I am working on many C-sourcecode files which contain many preprocessor #if , #elseif and #else statements. This statements often check for a #define , e.g. #if(Switch_TestMode == Switch_TestModeON) /* code 1 */ #else /*code 2 */ #endif Often this preprocessor statements are located within c-if statements which makes the sourcecode nearly unreadable for human beeings. The #define s used for this preprocessor #if statements are defined within an extra file. My idea now is to have a tool which

Assertions in Fortran

寵の児 提交于 2019-12-04 08:41:44
Does Fortran have a standard function/keyword equivalent for C assert ? I could not find assert mentioned in Fortran2003 standard I have. I have found few ways how to use pre-processor, but in this answer it is suggested to write own assertions. Is it possible to create such user function/subroutine without using pre-processor? I expect that these assertions are disabled for release builds. To my knowledge, there is no such statement or function/subroutine in Standard Fortran. But - as you have said - you can use your own subroutines/function and/or OOP in Fortran to realize this goal. See

GCC ARM Assembly Preprocessor Macro

China☆狼群 提交于 2019-12-04 07:26:45
I am trying to use an assembly(ARM) macro for fixed-point multiplication: #define MULT(a,b) __asm__ __volatile__ ( \ "SMULL r2, r3, %0, %1\n\t" \ "ADD r2, r2, #0x8000\n\t" \ "ADC r3, r3, #0\n\t" \ "MOV %0, r2, ASR#16\n\t" \ "ORR %0, %0, r3, ASL#16" \ : "=r" (a) : "0"(a), "1"(b) : "r2", "r3" ); but when trying to compile I get error(s): expected expression before ' asm ' (You can ignore everything below this if you value your time but it would be nice if you took a look at it, the main question here is how to make the above work) I tried this: static inline GLfixed MULT(GLfixed a, GLfixed b){