mirror of
https://github.com/pound-emu/ballistic.git
synced 2026-06-17 04:16:48 -07:00
engine: add export function attribute
Adds the BAL_EXPORT definition which allows to export functions to Lua via FFI. Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
@@ -82,6 +82,16 @@ extern "C"
|
||||
|
||||
#endif
|
||||
|
||||
#if BAL_PLATFORM_WINDOWS
|
||||
|
||||
#define BAL_EXPORT __declspec(dllexport)
|
||||
|
||||
#else
|
||||
|
||||
#define BAL_EXPORT __attribute__((visibility("default")))
|
||||
|
||||
#endif // BAL_EXPORT
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user