summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/function_attributes.md
AgeCommit message (Collapse)Author
2018-09-22Updated release note page.Jussi Pakkanen
2018-09-07Add method to check for C/C++ function attributesDylan Baker
It's fairly common on Linux and *BSD platforms to check for these attributes existence, so it makes sense to me to have this checking build into meson itself. Autotools also has a builtin for handling these, and by building them in we can short circuit cases that we know that these don't exist (MSVC). Additionally this adds support for two common MSVC __declspec attributes, dllimport and dllexport. This implements the declspec version (even though GCC has an __attribute__ version that both it and clang support), since GCC and Clang support the MSVC version as well. Thus it seems reasonable to assume that most projects will use the __declspec version over teh __attribute__ version.