Files
dl_old/third/LuaBridge3/Tests/Source/SharedCode.h
T
2026-04-28 18:52:55 +08:00

33 lines
609 B
C++
Vendored

// https://github.com/kunitoki/LuaBridge3
// Copyright 2022, kunitoki
// SPDX-License-Identifier: MIT
#pragma once
#include "Lua/LuaLibrary.h"
#if _WIN32
#if LUABRIDGE_TEST_SHARED_EXPORT
#define LUABRIDGE_TEST_SHARED_API __declspec(dllexport)
#else
#define LUABRIDGE_TEST_SHARED_API __declspec(dllimport)
#endif
#else
#define LUABRIDGE_TEST_SHARED_API
#endif
#include <string>
namespace xyz {
class LUABRIDGE_TEST_SHARED_API ISharedClass
{
public:
ISharedClass() = default;
virtual ~ISharedClass() = default;
virtual int publicMethod(const std::string& s) const = 0;
};
} // namespace xyz