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

6 lines
227 B
C

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