Просмотр исходного кода

win garbage for exporting symbols included

mikymod 12 лет назад
Родитель
Сommit
b084a61466
2 измененных файлов с 6 добавлено и 5 удалено
  1. 3 2
      game/Game.cpp
  2. 3 3
      game/Game.h

+ 3 - 2
game/Game.cpp

@@ -1,8 +1,8 @@
 #include "lua.hpp"
 #include "Device.h"
+/*
 #include "Game.h"
 
-
 namespace crown
 {
 
@@ -38,4 +38,5 @@ void frame(float dt)
 	lua_pcall(state, 1, 0, 0);
 }
 
-}
+}
+*/

+ 3 - 3
game/Game.h

@@ -34,18 +34,18 @@ extern "C"
 	/// Called exactly once after the engine is fully initialized
 	/// and ready to use. This function is the right place to allocate
 	/// and initialize all the main components of the game.
-	void init();
+	__declspec(dllexport) void init();
 
 	/// Called just before the engine starts to deallocate resources and
 	/// subsystems leading to terminating the execution.
 	/// Here you can safely perform all the necessary deallocation/destruction
 	/// of the previously allocated game resources and/or systems. 
-	void shutdown();
+	__declspec(dllexport) void shutdown();
 
 	/// Called once per frame, here is the place you tipically perform input checking,
 	/// updates, drawing and so on. The @a dt parameter contains the last frame delta time
 	/// in seconds. 
-	void frame(float dt);
+	__declspec(dllexport) void frame(float dt);
 }
 
 } // namespace crown