gb.hpp - All References are const convention
This commit is contained in:
parent
89941d395a
commit
c9f13a015c
|
@ -6,7 +6,7 @@ library | latest version | category | languages | description
|
|||
----------------|----------------|----------|-----------|-------------
|
||||
**gb_string.h** | 0.93 | strings | C, C++ | A better string library for C & C++
|
||||
**gb_ini.h** | 0.91 | misc | C, C++ | A simple ini file loader library for C & C++
|
||||
**gb.hpp** | 0.15 | misc | C++11 | (Experimental) A C++11 helper library without STL geared towards game development
|
||||
**gb.hpp** | 0.16 | misc | C++11 | (Experimental) A C++11 helper library without STL geared towards game development
|
||||
|
||||
## FAQ
|
||||
|
||||
|
|
13
src/main.cpp
13
src/main.cpp
|
@ -1,18 +1,5 @@
|
|||
#include "../gb.hpp"
|
||||
|
||||
struct Global_Allocators
|
||||
{
|
||||
gb::Heap_Allocator heap = {};
|
||||
|
||||
gb::Allocator* default_allocator = &heap;
|
||||
};
|
||||
|
||||
global Global_Allocators g_allocators;
|
||||
gb::Allocator& default_allocator()
|
||||
{
|
||||
return *g_allocators.default_allocator;
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
// "Use" variables
|
||||
|
|
Loading…
Reference in New Issue