mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 23:36:00 +02:00
Start of wasm support
This commit is contained in:
parent
053b302d42
commit
b7b065855d
22 changed files with 487 additions and 35 deletions
24
BeefySysLib/platform/wasm/BFPlatform.h
Normal file
24
BeefySysLib/platform/wasm/BFPlatform.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#define BFSTDCALL
|
||||
|
||||
#include "WasmCommon.h"
|
||||
|
||||
#define BF_PLATFORM_LINUX
|
||||
#define BF_PLATFORM_POSIX
|
||||
#define BF_PLATFORM_NAME "BF_PLATFORM_WASM"
|
||||
|
||||
#define BF_IMPORT extern "C"
|
||||
|
||||
#ifdef BFSYSLIB_DYNAMIC
|
||||
#define BF_EXPORT extern "C"
|
||||
#define BF_CALLTYPE
|
||||
#else
|
||||
#define BF_EXPORT extern "C"
|
||||
#define BF_CALLTYPE
|
||||
#define BF_RESOURCES_REL_DIR "../Resources"
|
||||
#endif
|
||||
|
||||
#define BF_DEBUG_BREAK()
|
||||
|
||||
#include "../PlatformInterface.h"
|
Loading…
Add table
Add a link
Reference in a new issue