Menu

#41 Directive for include path adding

open
1
2004-02-13
2003-08-24
No

I'd like to add special directive %incpath which will add
include path (like -I switch).

Syntax:
%incpath "C:\foo\"

The question is: should programmer have any way to
exclude path form set? Maybe there should be a state
variable __INCPATH__ which will contain pathes as
string set? And another directive which will replace
current include pathes set with new:

%setpath __INCPATH__ "C:\foo\"

What do you think?

Discussion

  • Nickolay Yurchenko

    • labels: --> Preprocessor Issues
    • assigned_to: nobody --> unv
     
  • nasm64developer

    nasm64developer - 2004-02-13

    Logged In: YES
    user_id=804543

    Providing access to the set of include paths
    would expose NASM to platform issues; that is
    the user might attempt to use forward slashes
    when backward slashes are required, and vice
    versa. Therefore the recommended solution is
    to place the -I option(s) into the environment
    variable looked at by NASM, a response file,
    a Makefile, a script, etc. -- just like with
    any other programming language.

     
  • nasm64developer

    nasm64developer - 2004-02-13
    • priority: 5 --> 1
     

Log in to post a comment.