Wiki

Changes between Initial Version and Version 1 of CompilerDirectives

Show
Ignore:
Timestamp:
06/25/11 14:16:27 (13 years ago)
Author:
RIGHT_THEN
Comment:

created some info for compiler directives

Legend:

Unmodified
Added
Removed
Modified
  • CompilerDirectives

    v1 v1  
     1Compiler directives are options, instructions, hints provided to compiler[[BR]] 
     2from with in code files. especially in cobra they are much more than[[BR]] 
     3#define,#if of c,c++,c#. In cobra one can pass arguments to compiler[[BR]] 
     4from within code file. which otherwise needs to be passed from commandline.[[BR]] 
     5 
     6 
     7various cobra Compiler directives are[[BR]] 
     8 
     9 @args[[BR]] 
     10 @number[[BR]] 
     11 @ref[[BR]] 
     12 @help[[BR]][[BR]] 
     13[[BR]] 
     14[[BR]] 
     15[[BR]] 
     16 
     17 
     18 '''@args'''[[BR]] 
     19 1) @args -t:winexe [[BR]] 
     20     is a example of specifing that current assembly shouldbe compiled as[[BR]] 
     21     Windows Executable[[BR]] 
     22 2) @args -lib:'C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0' 
     23     is a example of specifing search directory for assemblies by cobra compiler 
     24     to find the referenced assemblies.[[BR]] 
     25[[BR]] 
     26[[BR]] 
     27[[BR]] 
     28 
     29'''@ref'''[[BR]] 
     30 1)@ref "PresentationFramework"[[BR]] 
     31         is a example of referencing  "PresentationFramework" assembly from GAC which [[BR]] 
     32         would otheriwse have been -ref:"PresentationFramework" on commandline[[BR]] 
     33 2) @ref 'c:\somedirectory\validAssembly.exe'[[BR]] 
     34 3) @ref 'c:\somedirectory\validAssembly.dll'[[BR]] 
     35         above two examples reference assemblies by giving absolute paths for both .exe and .dll[[BR]] 
     36[[BR]] 
     37[[BR]] 
     38[[BR]] 
     39'''@help'''[[BR]] 
     40 1)http://cobra-language.com/forums/viewtopic.php?f=4&t=810&p=4195#p4125 
     41[[BR]] 
     42[[BR]] 
     43[[BR]] 
     44[[BR]] 
     45'''@number'''[[BR]] 
     46 1)http://cobra-language.com/trac/cobra/wiki/Troubleshooting