Right usage of linking. Enable the reuse of the same Slang object across multiple input files.
Change-Id: Id036c300ece9a245437ea2bdd0a9c0da436f558d
diff --git a/slang.hpp b/slang.hpp
index 891ace1..10d5412 100644
--- a/slang.hpp
+++ b/slang.hpp
@@ -188,6 +188,8 @@
void getPragmas(size_t* actualStringCount, size_t maxStringCount, char** strings);
+ const char* exportFuncs();
+
/* Reset the slang compiler state such that it can be reused to compile another file */
inline void reset() {
/* Seems there's no way to clear the diagnostics. We just re-create it. */