Skip to content

Commit

Permalink
Avoid DataStaticsFields dependency on PluginManager.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Aug 12, 2015
1 parent ffe29d3 commit 2aba2da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions library/LuaApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ distribution.
#include "DataIdentity.h"
#include "DataFuncs.h"
#include "DFHackVersion.h"
#include "PluginManager.h"

#include "modules/World.h"
#include "modules/Gui.h"
Expand Down
1 change: 1 addition & 0 deletions library/LuaTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ distribution.

#include "MiscUtils.h"
#include "DFHackVersion.h"
#include "PluginManager.h"

#include "df/job.h"
#include "df/job_item.h"
Expand Down
1 change: 1 addition & 0 deletions library/LuaTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ distribution.
#include "LuaTools.h"
#include "DataFuncs.h"

#include "PluginManager.h"
#include "MiscUtils.h"

#include <lua.h>
Expand Down
8 changes: 5 additions & 3 deletions library/include/LuaWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ distribution.
#include <map>

#include "DataDefs.h"
#include "PluginManager.h"

#include <lua.h>
#include <lauxlib.h>
Expand All @@ -39,7 +38,10 @@ distribution.
* Internal header file of the lua wrapper.
*/

namespace DFHack { namespace LuaWrapper {

namespace DFHack {
struct FunctionReg;
namespace LuaWrapper {
struct LuaToken;

/**
Expand Down Expand Up @@ -232,7 +234,7 @@ namespace DFHack { namespace LuaWrapper {
/**
* Wrap functions and add them to the table on the top of the stack.
*/
using DFHack::FunctionReg;
typedef DFHack::FunctionReg FunctionReg;
void SetFunctionWrappers(lua_State *state, const FunctionReg *reg);

int method_wrapper_core(lua_State *state, function_identity_base *id);
Expand Down

0 comments on commit 2aba2da

Please sign in to comment.