gb.hpp - All References are const convention

This commit is contained in:
gingerBill 2015-10-18 20:55:49 +01:00
parent 89941d395a
commit c9f13a015c
3 changed files with 274 additions and 311 deletions

View File

@ -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

570
gb.hpp

File diff suppressed because it is too large Load Diff

View File

@ -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