Some reformatting
This commit is contained in:
parent
952aad1e02
commit
8eefe21aae
1 changed files with 114 additions and 109 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
const std::regex PreprocDirective_( "^\\s*//!\\s*([a-z]+(\\s+([^\\s]+))*)\\s*$" );
|
const std::regex PreprocDirective_( "^\\s*//!\\s*([a-z]+(\\s+([^\\s]+))*)\\s*$" );
|
||||||
|
|
||||||
const std::map< std::string , E_ShaderInput > InputTypes_( ([] {
|
const std::map< std::string , E_ShaderInput > InputTypes_( ([] {
|
||||||
|
@ -15,7 +16,9 @@ namespace {
|
||||||
return t;
|
return t;
|
||||||
})());
|
})());
|
||||||
|
|
||||||
|
/*============================================================================*/
|
||||||
|
|
||||||
|
// Input reader state and functions, used when loading a source file
|
||||||
struct T_InputReader_
|
struct T_InputReader_
|
||||||
{
|
{
|
||||||
using T_Tokens_ = std::vector< std::string >;
|
using T_Tokens_ = std::vector< std::string >;
|
||||||
|
@ -44,6 +47,8 @@ namespace {
|
||||||
void error( __rd__ std::string const& err );
|
void error( __rd__ std::string const& err );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
T_InputReader_::~T_InputReader_( )
|
T_InputReader_::~T_InputReader_( )
|
||||||
{
|
{
|
||||||
if ( buffer ) {
|
if ( buffer ) {
|
||||||
|
|
Loading…
Reference in a new issue