]> git.tdb.fi Git - libs/gl.git/commitdiff
Export a couple of things from the shader compiler so unit tests can work
authorMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 19:40:15 +0000 (22:40 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 16 Jul 2023 23:15:44 +0000 (02:15 +0300)
I'll have to think of a better way to do this later.

source/glsl/syntax.h
source/glsl/tokenizer.h

index 1aa56cb708a05da8e1be7d379b5603a6e4edbf51..9b3d1954604fa4eb4fc3321d6fc2a9fd64cb1231 100644 (file)
@@ -9,6 +9,7 @@
 #include <cstdint>
 #include <msp/core/refptr.h>
 #include <msp/core/variant.h>
+#include <msp/gl/mspgl_api.h>
 #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
index 26c4b93c683ac7316fff92fda8aa8ab082215298..7a944e2e6e6a0a116f57b66d9d5dacd43ebd9232 100644 (file)
@@ -4,6 +4,7 @@
 #include <deque>
 #include <string>
 #include <sigc++/signal.h>
+#include <msp/gl/mspgl_api.h>
 
 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<void> signal_preprocess;