1
0
Fork 0
tsgames/build/assets/include/js.h

10 lines
316 B
C

#pragma once
#define JS_IMPORT(name) __attribute__((import_module("env"), import_name(#name)))
#define JS_EXPORT_AS(name) __attribute__((export_name(#name)))
#ifdef __cplusplus
#define JS_EXPORT extern "C" __attribute__((visibility("default")))
#else
#define JS_EXPORT __attribute__((visibility("default")))
#endif