docs: Document utils.h

This commit is contained in:
Paweł Bylica 2018-08-13 17:07:54 +02:00
parent e319788554
commit 445eadc980
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 15 additions and 0 deletions

View File

@ -5,14 +5,29 @@
#pragma once
/**
* @addtogroup helpers
* @{
*/
/**
* @def EVMC_EXPORT
* Marks a function to be exported from a shared library.
*/
#if defined _MSC_VER || defined __MINGW32__
#define EVMC_EXPORT __declspec(dllexport)
#else
#define EVMC_EXPORT __attribute__((visibility("default")))
#endif
/**
* @def EVMC_NOEXCEPT
* Safe way of marking a function with `noexcept` C++ specifier.
*/
#if __cplusplus
#define EVMC_NOEXCEPT noexcept
#else
#define EVMC_NOEXCEPT
#endif
/** @} */