MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | mixed include_file (string file, string compiled_file, int sys_include) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | Generate the pathname of an included file. |
| 6 | |
| 7 | Arguments: |
| 8 | previous_object(): The object causing the compile. |
| 9 | file : The name given in the #include directive. |
| 10 | compiled_file : The object file which is just compiled. |
| 11 | (compat: name given without leading "/") |
| 12 | sys_include : TRUE for #include <> directives. |
| 13 | |
| 14 | Result: |
| 15 | 0: use the normal include filename generation (""-includes are |
| 16 | used as they are, <>-includes are handled according to |
| 17 | H_INCLUDE_DIRS). |
| 18 | |
| 19 | <path>: the full absolute pathname of the file to include, |
| 20 | without parentdir parts ("/../"). Leading slashes ("/") |
| 21 | may be omitted. |
| 22 | |
| 23 | else: The include directive is not legal. |
| 24 | |
| 25 | If the function does not generate a valid pathname, the driver |
| 26 | will next try to resolve the include using the H_INCLUDE_DIRS hook. |
| 27 | |
| 28 | HISTORY |
| 29 | Introduced in LDMud 3.2.8. |
| 30 | |
| 31 | SEE ALSO |
| 32 | hooks(C), inherit_file(M), include_dirs(H) |