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:
Ronald Caesar
2026-06-08 23:53:36 -04:00
parent cb12ae4809
commit 8f157f120a
+10
View File
@@ -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 */