git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Remove special (unicode) underscore from runtime header
9ec7bf4Andy Arvanitis
runtime/purescript.h+3−3
@@ -181,9 +181,9 @@ namespace purescript {
181
181
182#define FOREIGN_BEGIN(NS) namespace NS {\
182#define FOREIGN_BEGIN(NS) namespace NS {\
183 using namespace purescript;\
183 using namespace purescript;\
184− auto _foreign_() -> dict_t&;\
184+ auto foreign() -> dict_t&;\
185− static const auto& NS ## _foreign_init = []() {\
185+ static const auto& NS ## $foreign_init = []() {\
186− dict_t& exports = _foreign_();
186+ dict_t& exports = foreign();
187#define FOREIGN_END return exports; }(); }
187#define FOREIGN_END return exports; }(); }
188
188
189#endif // purescript_H
189#endif // purescript_H
src/CodeGen/Cpp/Printer.hs+1−1
@@ -509,7 +509,7 @@ string :: Text
509string = "string"
509string = "string"
510
510
511foreignDict :: Text
511foreignDict :: Text
512−foreignDict = "_foreign_"
512+foreignDict = "foreign"
513
513
514dispatchOnceBegin :: Text
514dispatchOnceBegin :: Text
515dispatchOnceBegin = "static const boxed _value_ = "
515dispatchOnceBegin = "static const boxed _value_ = "