Page 1 of 1

Custom Constants / Include Path

Posted: Mon Feb 14, 2011 6:09 pm
by Zach
I'm confused on how the Custom Constants, in Compiler Options is supposed to work.. It seems like you can type a name for the constant into the text field, then hit "add", but it seems you can't predefine a value?

I want to designate a folder as an "include" repository, and store all my includes there.. Using a Constant for the path name, so I don't have to remember/define the entire path in every project/file I create..

Desired behavior might look like...

Code: Select all

XIncludeFile  "#IncludePath\file.ext"
Now I discovered the "Include Path" function to do this in a source file...but I was wondering if there is an option anywhere in the editor/compiler/project settings to have it automatically set, or alternatively if there are template options for new files we can use, so the code will be generated automatically when creating a file..

Re: Custom Constants / Include Path

Posted: Mon Feb 14, 2011 6:45 pm
by Fred
Did you tried this ?

Code: Select all

XIncludeFile  #IncludePath+"\file.ext"

Re: Custom Constants / Include Path

Posted: Mon Feb 14, 2011 7:06 pm
by Zach
I haven't tried that, because I don't know how to set an actual value once I add the custom name to the list. It doesn't seem to provide any additional functionality to do that. If you highlight the added custom include, and type something else then hit "set" it just changes the name to what you typed..

Unless I am confused by what you meant..

But what I want to do is, define a custom constant in the list, and then set a default value so I'd never have to define it by hand again, unless I wanted to change it for some reason.