...
 
Commits (7)
.vs
build
\ No newline at end of file
.vs
build
### C++ template
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### VisualStudio template
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# JustCode is a .NET coding add-in
.JustCode
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
### VisualStudioCode template
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
cmake_minimum_required(VERSION 3.9)
project(GLShader)
project(glsp)
list(APPEND INCLUDES ${PROJECT_SOURCE_DIR}/include)
# Set a default build type to release if none was specified
set(default_build_type "Release")
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif()
# -------------------------------------------------------------
# create target
# -------------------------------------------------------------
add_library(glsp "src/definition.cpp"
"src/compiler/compiler.cpp"
"src/compress/huffman.cpp"
"src/opengl/loader.cpp"
"src/preprocessor/classify.cpp"
"src/preprocessor/control.cpp"
"src/preprocessor/eval.cpp"
"src/preprocessor/extensions.cpp"
"src/preprocessor/macro.cpp"
"src/preprocessor/preprocessor.cpp"
"src/preprocessor/skip.cpp" )
# add an alias so that library can be used inside the build tree, e.g. when testing
add_library(glsp::glsp ALIAS glsp)
# -------------------------------------------------------------
# set include dirs
# -------------------------------------------------------------
target_include_directories( glsp
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/src )
# -------------------------------------------------------------
# link libraries
# -------------------------------------------------------------
if (MSVC)
list(APPEND LIBRARIES opengl32)
target_link_libraries(glsp PUBLIC opengl32)
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++latest")
elseif (UNIX)
list(APPEND LIBRARIES dl stdc++fs)
target_link_libraries(glsp PUBLIC dl stdc++fs)
endif()
# -------------------------------------------------------------
# set properties
# -------------------------------------------------------------
set_target_properties(glsp PROPERTIES LINKER_LANGUAGE CXX
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES)
# -------------------------------------------------------------
# export targets for easy integration
# -------------------------------------------------------------
set_target_properties(glsp PROPERTIES EXPORT_NAME glsp)
include(GNUInstallDirs)
set(INSTALL_CONFIGDIR ${CMAKE_INSTALL_LIBDIR}/cmake/glsp)
# install binaries
install(TARGETS glsp
EXPORT glsp-targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )
# install header
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/glsp DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
# generate version file
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
glspConfigVersion.cmake
VERSION 1.0.0
COMPATIBILITY AnyNewerVersion )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glspConfigVersion.cmake DESTINATION ${INSTALL_CONFIGDIR})
# install the cmake config
# this does only work as long as this project has no dependencies (find_package calls)
# see https://cliutils.gitlab.io/modern-cmake/chapters/install/installing.html
install(EXPORT glsp-targets
FILE glspConfig.cmake
NAMESPACE glsp::
DESTINATION ${INSTALL_CONFIGDIR} )
# --------------------------------------------------------
# export to build tree to allow instant use
# --------------------------------------------------------
option(EXPORT_BUILD_TREE "Enable, to export the targets from the build tree to your cmake registry. Useful for development." OFF)
if(EXPORT_BUILD_TREE)
# generate config.cmake inside buid tree
export(EXPORT glsp-targets FILE ${CMAKE_CURRENT_BINARY_DIR}/glspConfig.cmake NAMESPACE mpUtils::)
# register package in users package registry
export(PACKAGE glsp)
endif()
file(GLOB_RECURSE SRC_CPP "${PROJECT_SOURCE_DIR}/src/*.cpp")
add_library(glsp ${SRC_CPP})
target_link_libraries(glsp ${LIBRARIES})
set_target_properties(glsp PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(glsp PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
set_property(TARGET glsp PROPERTY CXX_STANDARD 17)
add_library(jbraun::glsp ALIAS glsp)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/glsp DESTINATION include FILES_MATCHING PATTERN *.hpp)
install (TARGETS glsp EXPORT glspTargets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include)
install(EXPORT glspTargets
FILE glspTargets.cmake
NAMESPACE jbraun::
DESTINATION lib/cmake/glsp
)
# -------------------------------------------------------------
# compile examples if user wants them
# -------------------------------------------------------------
option(GLSP_BUILD_EXECUTABLE OFF "Builds the example executable(s).")
if(GLSP_BUILD_EXECUTABLE)
if(GLSP_BUILD_EXECUTABLE)
file(GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/examples ${PROJECT_SOURCE_DIR}/examples/*)
message("[GLSP] Enabled Executables. Adding...")
foreach(example ${children})
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/examples/${example})
file(GLOB SOURCES ${PROJECT_SOURCE_DIR}/examples/${example}/*.cpp)
add_executable(${example} ${SOURCES})
target_link_libraries(${example} glsp)
if(MSVC)
target_link_libraries(${example} opengl32)
endif()
set_target_properties(${example} PROPERTIES LINKER_LANGUAGE CXX RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/examples/${example}" CXX_STANDARD 17)
target_include_directories(${example} PUBLIC ${INCLUDES})
target_include_directories(${example} PUBLIC ${PROJECT_SOURCE_DIR}/examples/${example})
if (NOT ${example} MATCHES "\\..*")
if(EXISTS ${CMAKE_SOURCE_DIR}/examples/${example}/CMakeLists.txt)
message("\t\t \"${example}\"")
add_subdirectory(${CMAKE_SOURCE_DIR}/examples/${example})
endif()
endif()
endif()
endforeach()
endif()
\ No newline at end of file
cmake_minimum_required(VERSION 3.8)
# create target
add_executable(from_file main.cpp wgl_context.cpp )
# set required language standard
set_target_properties(from_file PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED YES
)
# link libraries
target_link_libraries(from_file glsp::glsp)
#include <iostream>
#include <context.hpp>
#include <glsp/preprocess.hpp>
int main()
{
gl::context context(gl::native_handle::null, {
{ GL_CONTEXT_MAJOR_VERSION_ARB, 4 },
{ GL_CONTEXT_MINOR_VERSION_ARB, 5 },
{ GL_CONTEXT_PROFILE_MASK_ARB, GL_CONTEXT_CORE_PROFILE_BIT_ARB },
{ GL_CONTEXT_FLAGS_ARB, GL_CONTEXT_DEBUG_BIT_ARB }
});
glsp::state process_state;
const glsp::processed_file file = process_state.preprocess_file("test.vert");
if(!file)
{
std::cout << "Failed to process file.\n";
}
constexpr const char* source = R"(
#include "inc.glsl"
#define MY_FUN sin
#define OTHER_FUN() cos
void main()
{
int x = int(MY_FUN(177.f));
int y = int(OTHER_FUN( )(12.f));
}
)";
const glsp::processed_file src = process_state.preprocess_source(source, "Shader");
std::cin.ignore();
return 0;
#include <iostream>
#include "context.hpp"
#include <glsp/preprocess.hpp>
int main()
{
gl::context context(gl::native_handle::null, {
{ GL_CONTEXT_MAJOR_VERSION_ARB, 4 },
{ GL_CONTEXT_MINOR_VERSION_ARB, 5 },
{ GL_CONTEXT_PROFILE_MASK_ARB, GL_CONTEXT_CORE_PROFILE_BIT_ARB },
{ GL_CONTEXT_FLAGS_ARB, GL_CONTEXT_DEBUG_BIT_ARB }
});
glsp::state process_state;
const glsp::processed_file file = process_state.preprocess_file("test.vert");
if(!file)
{
std::cout << "Failed to process file.\n";
}
constexpr const char* source = R"(
#include "inc.glsl"
#define MY_FUN sin
#define OTHER_FUN() cos
void main()
{
int x = int(MY_FUN(177.f));
int y = int(OTHER_FUN( )(12.f));
}
)";
const glsp::processed_file src = process_state.preprocess_source(source, "Shader");
std::cin.ignore();
return 0;
}
\ No newline at end of file
/*******************************************************************************/
/* File huffman.hpp
/* Author Johannes Braun
/* Created 31.03.2018
/*
/* Provides helper functionality for compressing and uncompressing data using
/* huffman trees.
/*******************************************************************************/
#pragma once
#include "config.hpp"
#include <array>
#include <vector>
#include <queue>
#include <sstream>
namespace glshader::process::compress::huffman
{
/* Tests a type on whether it is a container type by checking for a value_type type, as well as a resize(size_t) function and
overloads for std::size(...) and std::data(...). */
template<typename Container, typename BaseContainer = std::decay_t<std::remove_const_t<Container>>>
using enable_if_container = std::void_t<
typename BaseContainer::value_type,
decltype(std::declval<BaseContainer>().resize(size_t(0))),
decltype(std::size(std::declval<BaseContainer>())),
decltype(std::data(std::declval<BaseContainer>()))
>;
/* Contains a byte stream used when de-/encoding.
For simple std::basic_string<uint8_t> conversion, call stream.stringstream.str(), otherwise you can convert it
to any other STL contiguous-storage container using to_container<Container>(). */
struct stream {
size_t stream_length;
std::basic_stringstream<uint8_t> stringstream;
template<typename Container, typename = enable_if_container<Container>>
std::decay_t<std::remove_const_t<Container>> to_container()
{
using BaseContainer = std::decay_t<std::remove_const_t<Container>>;
BaseContainer container;
container.resize(stream_length / sizeof(typename BaseContainer::value_type));
stringstream.read(reinterpret_cast<uint8_t*>(std::data(container)), std::size(container) * sizeof(typename BaseContainer::value_type));
return container;
}
};
/*******************************/
/* STL container wrapper
/*******************************/
/* Helper function calling encode(const uint8_t*, size_t) */
template<typename Container, typename = enable_if_container<Container>>
stream encode(const Container& in) { return encode(std::data(in), std::size(in)); }
/* Helper function calling decode(const uint8_t*, size_t) */
template<typename Container, typename = enable_if_container<Container>>
stream decode(const Container& in) { return decode(std::data(in), std::size(in)); }
/*******************************/
/* Base functions
/*******************************/
/* Encode a given uncompressed input with a given length into a compressed stream form using the huffman algorithm. */
stream encode(const uint8_t* in, size_t in_length);
/* Encode a given compressed input with a given length into an uncompressed stream form using the huffman algorithm. */
stream decode(const uint8_t* in, size_t in_length);
/*******************************************************************************/
/* File huffman.hpp
/* Author Johannes Braun
/* Created 31.03.2018
/*
/* Provides helper functionality for compressing and uncompressing data using
/* huffman trees.
/*******************************************************************************/
#pragma once
#include "config.hpp"
#include <array>
#include <vector>
#include <queue>
#include <sstream>
namespace glshader::process::compress::huffman
{
/* Tests a type on whether it is a container type by checking for a value_type type, as well as a resize(size_t) function and
overloads for std::size(...) and std::data(...). */
template<typename Container, typename BaseContainer = std::decay_t<std::remove_const_t<Container>>>
using enable_if_container = std::void_t<
typename BaseContainer::value_type,
decltype(std::declval<BaseContainer>().resize(size_t(0))),
decltype(std::size(std::declval<BaseContainer>())),
decltype(std::data(std::declval<BaseContainer>()))
>;
/* Contains a byte stream used when de-/encoding.
For simple std::basic_string<uint8_t> conversion, call stream.stringstream.str(), otherwise you can convert it
to any other STL contiguous-storage container using to_container<Container>(). */
struct stream {
size_t stream_length;
std::basic_stringstream<uint8_t> stringstream;
template<typename Container, typename = enable_if_container<Container>>
std::decay_t<std::remove_const_t<Container>> to_container()
{
using BaseContainer = std::decay_t<std::remove_const_t<Container>>;
BaseContainer container;
container.resize(stream_length / sizeof(typename BaseContainer::value_type));
stringstream.read(reinterpret_cast<uint8_t*>(std::data(container)), std::size(container) * sizeof(typename BaseContainer::value_type));
return container;
}
};
/*******************************/
/* Base functions
/*******************************/
/* Encode a given uncompressed input with a given length into a compressed stream form using the huffman algorithm. */
stream encode(const uint8_t* in, size_t in_length);
/* Encode a given compressed input with a given length into an uncompressed stream form using the huffman algorithm. */
stream decode(const uint8_t* in, size_t in_length);
/*******************************/
/* STL container wrapper
/*******************************/
/* Helper function calling encode(const uint8_t*, size_t) */
template<typename Container, typename = enable_if_container<Container>>
stream encode(const Container& in) { return encode(std::data(in), std::size(in)); }
/* Helper function calling decode(const uint8_t*, size_t) */
template<typename Container, typename = enable_if_container<Container>>
stream decode(const Container& in) { return decode(std::data(in), std::size(in)); }
}
\ No newline at end of file
This diff is collapsed.
#include "macro.hpp"
#include "classify.hpp"
#include "control.hpp"
#include "skip.hpp"
#include "extensions.hpp"
#include "../strings.hpp"
#include <sstream>
namespace glshader::process::impl::macro
#include "macro.hpp"
#include "classify.hpp"
#include "control.hpp"
#include "skip.hpp"
#include "extensions.hpp"
#include "../strings.hpp"
#include <sstream>
#include <cstring>
namespace glshader::process::impl::macro
{
namespace cls = impl::classify;
namespace ctrl = impl::control;
namespace skip = impl::skip;
namespace skip = impl::skip;
bool is_defined(const std::string& val, const processed_file& processed)
{
if (std::strncmp(val.data(), "GL_", 3) && ext::extension_available(val))
......@@ -191,5 +192,5 @@ namespace glshader::process::impl::macro
if (line[line.size() - 1] == '\0')
line[line.size() - 1] = '\n';
return line;
}
}
}
\ No newline at end of file