Skip to content

Commit

Permalink
Merge branch 'pybind11_upgrade'
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Dec 21, 2020
2 parents 3ddc9f2 + 5e72bc8 commit 39de2db
Show file tree
Hide file tree
Showing 33 changed files with 7,177 additions and 3,220 deletions.
2 changes: 1 addition & 1 deletion include/imodule.h
Expand Up @@ -510,5 +510,5 @@ namespace module
#elif defined(__APPLE__)
#define DARKRADIANT_DLLEXPORT __attribute__((visibility("default")))
#else
#define DARKRADIANT_DLLEXPORT
#define DARKRADIANT_DLLEXPORT __attribute__((visibility("default")))
#endif
8 changes: 7 additions & 1 deletion include/iscriptinterface.h
@@ -1,6 +1,8 @@
#pragma once

#include <memory>
#include <vector>
#include <utility>
#include <pybind11/pybind11.h>
namespace py = pybind11;

Expand All @@ -10,6 +12,8 @@ namespace script
class IScriptInterface
{
public:
using Ptr = std::shared_ptr<IScriptInterface>;

virtual ~IScriptInterface() {}

/**
Expand All @@ -18,6 +22,8 @@ class IScriptInterface
*/
virtual void registerInterface(py::module& scope, py::dict& globals) = 0;
};
typedef std::shared_ptr<IScriptInterface> IScriptInterfacePtr;

using NamedInterface = std::pair<std::string, IScriptInterface::Ptr>;
using NamedInterfaces = std::vector<NamedInterface>;

}

0 comments on commit 39de2db

Please sign in to comment.