Skip to content

Commit

Permalink
add F4SE defines inline with other clib projects
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed Sep 7, 2024
1 parent 739a2ed commit 46a6225
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CommonLibF4/include/F4SE/Interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -521,5 +521,9 @@ namespace F4SE
}

#define F4SE_EXPORT extern "C" [[maybe_unused]] __declspec(dllexport)
#define F4SE_PLUGIN_PRELOAD(...) F4SE_EXPORT bool F4SEPlugin_Preload(__VA_ARGS__)
#define F4SE_PLUGIN_LOAD(...) F4SE_EXPORT bool F4SEPlugin_Load(__VA_ARGS__)
#define F4SEPluginPreload(...) F4SE_EXPORT bool F4SEPlugin_Preload(__VA_ARGS__)
#define F4SEPluginLoad(...) F4SE_EXPORT bool F4SEPlugin_Load(__VA_ARGS__)
#define F4SEPluginVersion F4SE_EXPORT constinit F4SE::PluginVersionData F4SEPlugin_Version
#define F4SE_PLUGIN_PRELOAD F4SEPluginPreload
#define F4SE_PLUGIN_LOAD F4SEPluginLoad
#define F4SE_PLUGIN_VERSION F4SEPluginVersion
2 changes: 1 addition & 1 deletion CommonLibF4/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target("commonlibf4", function()
add_packages("rsm-binary-io", "rsm-mmio", "spdlog", { public = true })

if has_config("f4se_xbyak") then
add_packages("xbyak")
add_packages("xbyak", { public = true })
end

-- add options
Expand Down

0 comments on commit 46a6225

Please sign in to comment.