Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 801 Bytes

CheckAttribute.md

File metadata and controls

37 lines (25 loc) · 801 Bytes

PHP/CheckAttribute

Check if GNU C function or variable attribute is supported by the compiler.

Module exposes the following functions:

php_check_function_attribute(<attribute> <result>)
php_check_variable_attribute(<attribute> <result>)
  • <attribute> Name of the attribute to check.

  • <result> Cache variable name to store the result of whether the compiler supports the attribute <attribute>.

Supported function attributes:

  • ifunc
  • target
  • visibility

Supported variable attributes:

  • aligned

Basic usage

# CMakeLists.txt
include(PHP/CheckAttribute)