
#ifndef WASM_API_H
#define WASM_API_H

#ifdef LIBWASM_STATIC_DEFINE
#  define WASM_API
#  define LIBWASM_NO_EXPORT
#else
#  ifndef WASM_API
#    ifdef LibWasm_EXPORTS
        /* We are building this library */
#      define WASM_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define WASM_API __attribute__((visibility("default")))
#    endif
#  endif

#  ifndef LIBWASM_NO_EXPORT
#    define LIBWASM_NO_EXPORT __attribute__((visibility("hidden")))
#  endif
#endif

#ifndef LIBWASM_DEPRECATED
#  define LIBWASM_DEPRECATED __attribute__ ((__deprecated__))
#endif

#ifndef LIBWASM_DEPRECATED_EXPORT
#  define LIBWASM_DEPRECATED_EXPORT WASM_API LIBWASM_DEPRECATED
#endif

#ifndef LIBWASM_DEPRECATED_NO_EXPORT
#  define LIBWASM_DEPRECATED_NO_EXPORT LIBWASM_NO_EXPORT LIBWASM_DEPRECATED
#endif

/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
#if 0 /* DEFINE_NO_DEPRECATED */
#  ifndef LIBWASM_NO_DEPRECATED
#    define LIBWASM_NO_DEPRECATED
#  endif
#endif

#endif /* WASM_API_H */
