mesa: Define introspection macro to determine whether a type is trivially destructible.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Oct 2013 17:37:21 +0000 (10:37 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 29 Oct 2013 19:40:55 +0000 (12:40 -0700)
commit98ab905af0e0eedf0cfbd9c466f6ae587f5b20c9
treefbc09664c7d975b49f82d0a709fb851a5943471e
parentbe63803b0c1efab19d20be3274f92fb55ead7958
mesa: Define introspection macro to determine whether a type is trivially destructible.

Only implemented on GCC and Clang for now.  Other compilers use a
dummy implementation that always returns false, which should be a safe
[but slightly inefficient] assumption in all cases.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/compiler.h