Skip to content

Commit f4eaa2f

Browse files
committed
Use PLUGIN_API macro instead of extern ...
1 parent aecc7b4 commit f4eaa2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/developing/lua-modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ This adds the LuaJIT include path and links `lua51.lib`.
3232
PreSetup("MQ2MyPlugin");
3333
PLUGIN_VERSION(1.0);
3434

35-
extern "C" __declspec(dllexport) sol::object CreateLuaModule(sol::this_state s)
35+
PLUGIN_API sol::object CreateLuaModule(sol::this_state s)
3636
{
3737
sol::state_view sv{ s };
3838
sol::table module = sv.create_table();

0 commit comments

Comments
 (0)