Shader: Cleanup and rename AST files
This commit is contained in:
15
src/Nazara/Shader/Ast/AstStatementVisitorExcept.cpp
Normal file
15
src/Nazara/Shader/Ast/AstStatementVisitorExcept.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
// Copyright (C) 2020 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Shader generator"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Shader/Ast/AstStatementVisitorExcept.hpp>
|
||||
#include <Nazara/Shader/Debug.hpp>
|
||||
|
||||
namespace Nz::ShaderAst
|
||||
{
|
||||
#define NAZARA_SHADERAST_STATEMENT(Node) void StatementVisitorExcept::Visit(ShaderAst::Node& /*node*/) \
|
||||
{ \
|
||||
throw std::runtime_error("unexpected " #Node " node"); \
|
||||
}
|
||||
#include <Nazara/Shader/Ast/AstNodeList.hpp>
|
||||
}
|
||||
Reference in New Issue
Block a user