Synopsis

(macro) int ddf_CheckTFIAttr(int tfi, long attr)

Purpose

Check if an entity TF has an attribute.

Description

If the DDF entry for entity TFI tfi was specified with the attr attribute this function will return true, otherwise it will return false. The attr argument must be specified as one of the #defines generated by the DDF compiler for the attributes (the name of the attribute in uppercase) or a combination of them logically ORed together.

Input

tfi

The TFI to check for having attr

attr

The attribute to check for

Return

True if the entity has attr specified, false if not.