Lumenarium/src_v2/platform/webgl/lumenarium_first_webgl.cpp

18 lines
295 B
C++
Raw Normal View History

2022-03-22 18:13:06 +00:00
#define WEBGL_EXPORT __attribute__((visibility("default")))
#define WEBGL_EXTERN extern "C"
#define EXTERN_C_BEGIN extern "C" {
#define EXTERN_C_END }
WEBGL_EXTERN void print(char* text);
EXTERN_C_BEGIN;
WEBGL_EXPORT int
main(void)
{
print("Hi there!\n");
return 5;
}
EXTERN_C_END;