get_datafile_property
Returns the property string for the object.
Description
Finds the property type of a DATAFILE object. The type parameter must be a
value created with the DAT_ID() macro. Example:
const char *name;
...
name = get_datafile_property(game_data,
DAT_ID('N','A','M','E'));
if (name == empty_string)
abort_on_error("Object doesn't have a name!");
Returns a pointer to the text string for the object, or a pointer to the
variable empty_string if the property isn't present.
Related Discussions
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
Related Projects
The following projects include source code containing this keyword: