Doxygen Samurai Engine 0.0.1
Doxygen Samurai Engine Documentation
Loading...
Searching...
No Matches
containers.cpp File Reference
#include <containers.h>
#include <assert/assert.h>
Include dependency graph for containers.cpp:

Go to the source code of this file.

Macros

#define SAMURAI_DECLARE_CONTAINER(x)
 

Functions

ContainergetContainer (const char *name, samurai::memory::MemoryArena *memoryArena)
 

Macro Definition Documentation

◆ SAMURAI_DECLARE_CONTAINER

#define SAMURAI_DECLARE_CONTAINER ( x)
Value:
if (std::strcmp(name, #x ) == 0) \
{ \
if (sizeof(x) != memoryArena->containerStructMemory.size) { return nullptr; } \
return new(memoryArena->containerStructMemory.block) x (); \
} \
else

Definition at line 7 of file containers.cpp.

Function Documentation

◆ getContainer()

Container * getContainer ( const char * name,
samurai::memory::MemoryArena * memoryArena )

Definition at line 16 of file containers.cpp.

Here is the caller graph for this function: