Sfoglia il codice sorgente

exports some IMPORTANT symbols

mikymod 12 anni fa
parent
commit
97f3fa8537
3 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      engine/core/mem/Allocator.h
  2. 2 2
      engine/core/mem/Memory.cpp
  3. 2 2
      engine/core/mem/Memory.h

+ 1 - 1
engine/core/mem/Allocator.h

@@ -59,7 +59,7 @@ private:
 	Allocator&			operator=(const Allocator&);
 };
 
-Allocator& default_allocator();
+CE_EXPORT Allocator& default_allocator();
 
 /// Respects standard behaviour when calling on NULL @a ptr
 template <typename T>

+ 2 - 2
engine/core/mem/Memory.cpp

@@ -63,12 +63,12 @@ namespace memory
 static char buffer[1024];
 static HeapAllocator* g_default_allocator = NULL;
 
-void init()
+void init_memory()
 {
 	g_default_allocator = new (buffer) HeapAllocator();
 }
 
-void shutdown()
+void shutdown_memory()
 {
 	g_default_allocator->~HeapAllocator();
 }

+ 2 - 2
engine/core/mem/Memory.h

@@ -40,12 +40,12 @@ const size_t	DEFAULT_ALIGN	= 4;			//!< Default memory alignment in bytes
 /// Constructs the initial default allocators.
 /// @note
 /// Has to be called before anything else during the engine startup.
-void init();
+CE_EXPORT void init_memory();
 
 /// Destroys the allocators created with memory::init().
 /// @note
 /// Should be the last call of the program.
-void shutdown();
+CE_EXPORT void shutdown_memory();
 
 /// Returns the pointer @a p aligned to the desired @a align byte
 inline void* align_top(void* p, size_t align)