blob: 3313d3b2bbe6f56f38910e667d1b459b2e46d5d8 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 string expand_define(string name)
3 string expand_define(string name, string arg, ...)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Expands the macro <name> with the argument(s) <arg>... (default is
7 one empty string "").
8 Result is the expanded macro, or 0 if there is no macro with
9 that name.
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 This efun is applicable only while an object is compiled,
12 therefore its usage is restricted to a few functions like the
13 H_INCLUDE_DIRS driver hook, or the masters runtime_error()
14 function.
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016EXAMPLES
17 While compiling 'foo.c':
18 expand_define("__FILE__") --> "foo.c"
MG Mud User88f12472016-06-24 23:31:02 +020019
Zesstra715ec202025-07-09 22:18:31 +020020HISTORY
21 Introduced in 3.2.1@93.
MG Mud User88f12472016-06-24 23:31:02 +020022
Zesstra715ec202025-07-09 22:18:31 +020023SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020024 hooks(C), runtime_error(M)