mirror of https://github.com/status-im/evmc.git
docs: Document utils.h
This commit is contained in:
parent
e319788554
commit
445eadc980
|
@ -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
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Reference in New Issue