
#ifndef JS_API_H
#define JS_API_H

#ifdef LIBJS_STATIC_DEFINE
#  define JS_API
#  define LIBJS_NO_EXPORT
#else
#  ifndef JS_API
#    ifdef LibJS_EXPORTS
        /* We are building this library */
#      define JS_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define JS_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef LIBJS_DEPRECATED_EXPORT
#  define LIBJS_DEPRECATED_EXPORT JS_API LIBJS_DEPRECATED
#endif

#ifndef LIBJS_DEPRECATED_NO_EXPORT
#  define LIBJS_DEPRECATED_NO_EXPORT LIBJS_NO_EXPORT LIBJS_DEPRECATED
#endif

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

#endif /* JS_API_H */
