native_access.h
native access.h
CPP1/* Copyright Statement:2 *3 * (C) 2021-2024 Cubios Inc. All rights reserved.4 */56#pragma once78#ifndef _WIN329#define VISIBILITY __attribute__((used)) __attribute__((visibility ("default")))10#else11#define VISIBILITY12#endif1314#if !defined(__EMSCRIPTEN__) && defined(_WIN32)15 #define WASM_DLL_EXPORT __declspec( dllexport )16#else17 #define WASM_DLL_EXPORT18#endif1920#ifdef __cplusplus21 #define WASM_EXPORT extern "C" VISIBILITY WASM_DLL_EXPORT22#else23 #define WASM_EXPORT extern VISIBILITY24#endif2526// #define WASM_IMPORT(MODULE,NAME) __attribute__((import_module(MODULE))) __attribute__((import_name(NAME)))27#define WASM_IMPORT(NAME) __attribute__((import_name(NAME)))2829
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.