From fffd8e2f86f624b9aa9c756697146284e8b48dcc Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 16 Jul 2023 22:40:15 +0300 Subject: [PATCH] Export a couple of things from the shader compiler so unit tests can work I'll have to think of a better way to do this later. --- source/glsl/syntax.h | 3 ++- source/glsl/tokenizer.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/glsl/syntax.h b/source/glsl/syntax.h index 1aa56cb7..9b3d1954 100644 --- a/source/glsl/syntax.h +++ b/source/glsl/syntax.h @@ -9,6 +9,7 @@ #include #include #include +#include #include "features.h" #include "glsl_error.h" #include "sourcemap.h" @@ -514,7 +515,7 @@ struct Stage Stage(Type); - static const char *get_stage_name(Type); + MSPGL_API static const char *get_stage_name(Type); }; struct Module diff --git a/source/glsl/tokenizer.h b/source/glsl/tokenizer.h index 26c4b93c..7a944e2e 100644 --- a/source/glsl/tokenizer.h +++ b/source/glsl/tokenizer.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace Msp { namespace GL { @@ -20,7 +21,7 @@ struct Location Location(const std::string &n, unsigned l): name(n), line(l) { } }; -class Tokenizer +class MSPGL_API Tokenizer { public: sigc::signal signal_preprocess; -- 2.45.2