From 8095b4aef27cbe5d758ea9f3d8cc5b603d616dbf Mon Sep 17 00:00:00 2001 From: Martin Felis Date: Wed, 31 Aug 2016 22:44:29 +0200 Subject: [PATCH] Made RuntimeCompiledCpp reload code. Woooot! --- CMakeLists.txt | 3 +++ src/SceneObject.cpp | 6 +++--- src/rcpp/IUpdateable.h | 2 +- src/rcpp/InterfaceIds.h | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b0c612..9a35546 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,10 @@ INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src + + # Required to compile RCPP related code ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty + ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/RuntimeCompiledCpp/RuntimeObjectSystem ) FIND_PACKAGE (X11 REQUIRED) diff --git a/src/SceneObject.cpp b/src/SceneObject.cpp index afe2740..0126c89 100644 --- a/src/SceneObject.cpp +++ b/src/SceneObject.cpp @@ -1,5 +1,5 @@ -#include "RuntimeCompiledCpp/RuntimeObjectSystem/ObjectInterfacePerModule.h" -#include "RuntimeCompiledCpp/RuntimeObjectSystem/IObject.h" +#include "ObjectInterfacePerModule.h" +#include "IObject.h" #include "rcpp/IUpdateable.h" #include "rcpp/InterfaceIds.h" @@ -11,7 +11,7 @@ class SceneObject : public TInterface public: virtual void Update( float deltaTime ) { - std::cout << "Runtime Object 01 update called!\n"; + std::cout << "Runtime Object 23 update called!\n"; } }; diff --git a/src/rcpp/IUpdateable.h b/src/rcpp/IUpdateable.h index 4f5aeb1..e246d5d 100644 --- a/src/rcpp/IUpdateable.h +++ b/src/rcpp/IUpdateable.h @@ -20,7 +20,7 @@ #ifndef IUPDATEABLE_INCLUDED #define IUPDATEABLE_INCLUDED -#include "RuntimeCompiledCpp/RuntimeObjectSystem/IObject.h" +#include "IObject.h" struct IUpdateable : public IObject { diff --git a/src/rcpp/InterfaceIds.h b/src/rcpp/InterfaceIds.h index bab75eb..7b0b9a3 100644 --- a/src/rcpp/InterfaceIds.h +++ b/src/rcpp/InterfaceIds.h @@ -28,7 +28,7 @@ #ifndef INTERFACEIDS_INCLUDED #define INTERFACEIDS_INCLUDED -#include "RuntimeCompiledCpp/RuntimeObjectSystem/IObject.h" +#include "IObject.h" enum InterfaceIDEnumConsoleExample {