git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Remove special (unicode) underscore from runtime header
commit9ec7bf4e30cca0582e5233dd359b9a8baffd49a1 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 19 Aug 2018, 18:01 (8 years ago) parent3ad4c2a
2 files changed+4−4
runtime/purescript.h+3−3 src/CodeGen/Cpp/Printer.hs+1−1
runtime/purescript.h+3−3
@@ -181,9 +181,9 @@ namespace purescript {
181181
182182#define FOREIGN_BEGIN(NS) namespace NS {\
183183 using namespace purescript;\
184− auto _foreign_() -> dict_t&;\
185− static const auto& NS ## _foreign_init = []() {\
186− dict_t& exports = _foreign_();
184+ auto foreign() -> dict_t&;\
185+ static const auto& NS ## $foreign_init = []() {\
186+ dict_t& exports = foreign();
187187#define FOREIGN_END return exports; }(); }
188188
189189#endif // purescript_H
src/CodeGen/Cpp/Printer.hs+1−1
@@ -509,7 +509,7 @@ string :: Text
509509string = "string"
510510
511511foreignDict :: Text
512−foreignDict = "_foreign_"
512+foreignDict = "foreign"
513513
514514dispatchOnceBegin :: Text
515515dispatchOnceBegin = "static const boxed _value_ = "