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

7 lines
205 B
C

#pragma once
#define IMPORT(name) __attribute__((import_module("env"), import_name(#name)))
#define EXPORT(name) __attribute__((export_name(#name)))
IMPORT(log) int console_log(const char* format, ...);