mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-25 16:18:57 +08:00
fixing c standard lib includes
This commit is contained in:
parent
a5f9701ce6
commit
30d7f2ee66
|
@ -5,6 +5,7 @@
|
||||||
#include <stddef.h> // for std::size_t
|
#include <stddef.h> // for std::size_t
|
||||||
#include <stdlib.h> // for abort
|
#include <stdlib.h> // for abort
|
||||||
#include <stdarg.h> // for string format methods
|
#include <stdarg.h> // for string format methods
|
||||||
|
#include <stdio.h> // for vsnprintf
|
||||||
#include <math.h> // for standard lib math functions used in blah_calc.h
|
#include <math.h> // for standard lib math functions used in blah_calc.h
|
||||||
|
|
||||||
// Numeric Types
|
// Numeric Types
|
||||||
|
|
|
@ -17,13 +17,13 @@ namespace Blah
|
||||||
|
|
||||||
char& operator[](int index)
|
char& operator[](int index)
|
||||||
{
|
{
|
||||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||||
return s_ptr()[index];
|
return s_ptr()[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char& operator[](int index) const
|
const char& operator[](int index) const
|
||||||
{
|
{
|
||||||
BLAH_ASSERT(index >= 0 && index < length(), "Index out of range");
|
BLAH_ASSERT(index >= 0 && index < length() + 1, "Index out of range");
|
||||||
return s_ptr()[index];
|
return s_ptr()[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include <blah_common.h>
|
#include <blah_common.h>
|
||||||
#include <blah_app.h>
|
#include <blah_app.h>
|
||||||
|
#include <stdio.h> // for vsnprintf
|
||||||
|
|
||||||
using namespace Blah;
|
using namespace Blah;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#include <blah_graphics.h>
|
#include <blah_graphics.h>
|
||||||
#include <blah_stream.h>
|
#include <blah_stream.h>
|
||||||
#include "internal/blah_internal.h"
|
#include "internal/blah_internal.h"
|
||||||
|
#include <string.h> // for strcmp
|
||||||
|
|
||||||
using namespace Blah;
|
using namespace Blah;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include <blah_stream.h>
|
#include <blah_stream.h>
|
||||||
#include <blah_string.h>
|
#include <blah_string.h>
|
||||||
|
#include <string.h> // for memcpy
|
||||||
|
|
||||||
using namespace Blah;
|
using namespace Blah;
|
||||||
|
|
||||||
|
|
|
@ -1650,7 +1650,7 @@ Blah::Renderer* Blah::Renderer::try_make_d3d11()
|
||||||
|
|
||||||
#else // BLAH_RENDERER_D3D11
|
#else // BLAH_RENDERER_D3D11
|
||||||
|
|
||||||
#include "renderer.h"
|
#include "blah_renderer.h"
|
||||||
Blah::Renderer* Blah::Renderer::try_make_d3d11()
|
Blah::Renderer* Blah::Renderer::try_make_d3d11()
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user