Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
another wish: #pragma
#1
I know fb is not c (well actually Vic said once fb is c in a clown costume) but how about adding #pragma.
This way we could set the compiler settings inside the main bas file (if we wish to).

Just keep the same compiler switches:
  • #PRAGMA -inputlist <name> 'xxx.a = library, xxx.o = object, xxx.bas = source, xxx.rc = resource script, xxx.res = compiled resource

    #PRAGMA -a <name> 'Add an object file to linker's list
    #PRAGMA -arch <type> 'Set target architecture (def: 486)
    #PRAGMA -b <name> 'Add a source file to compilation
    #PRAGMA -c 'Compile only, do not link
    #PRAGMA -d <name=val> 'Add a preprocessor's define
    #PRAGMA -dll 'Same as -dylib
    #PRAGMA -dylib 'Create a DLL, including the import library
    #PRAGMA -e 'Add error checking
    #PRAGMA -entry <name> 'Set a non-standard entry point, see -m
    #PRAGMA -ex 'Add error checking with RESUME support
    #PRAGMA -g 'Add debug info (testing)
    #PRAGMA -i <name> 'Add a path to search for include files
    #PRAGMA -l <name> 'Add a library file to linker's list
    #PRAGMA -lib 'Create a static library
    #PRAGMA -m <name> 'Main file w/o ext, the entry point (def: 1st .bas on list)
    #PRAGMA -nodeflibs 'Do not include the default libraries
    #PRAGMA -noerrline 'Do not show source line where error occured
    #PRAGMA -o <name> 'Set output name (in the same number as source files)
    #PRAGMA -p <name> 'Add a path to search for libraries
    #PRAGMA -r 'Do not delete the asm file(s)
    #PRAGMA -s <name> 'Set subsystem (gui, console)
    #PRAGMA -t <value> 'Set stack size in kbytes (default: 1M)
    #PRAGMA -v 'Be verbose
    #PRAGMA -version 'Show compiler version
    #PRAGMA -x <name> 'Set executable/library name
    #PRAGMA -w <value> 'Set min warning level


If we would get #PRAGMA there would not be a need for an external make file, because the main bas file would drive everything.
Reply
#2
A VERY good Idea! Big Grin
erman freeBASIC-mailinglist: de.groups.yahoo.com/group/free-basic.
For subscribing send an empty e-mail to free-basic-subscribe@yahoogroups.de.
Reply
#3
That would be splendid!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#4
Quote:well actually Vic said once fb is c in a clown costume

victor didn't say that helium did Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)