lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Mar 9, 2011 at 8:54 AM, Henk Boom <henk@henk.ca> wrote:
>
> Actually, C does. Some projects do something like -I. and use absolute
> paths anyway though.
>
What C does is including - the preprocessor replaces a part of text
with another text.

And even C does relative including - by using quotes:

    #include "foo.h"

This would search for a file named "foo.h" in the same directory the
sourcefile lies, but:

   #include <foo.h>

would search global include paths first.