git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Minor cleanup of foreign exports init
8847fbcAndy Arvanitis
runtime/purescript.h+2−2
@@ -181,8 +181,8 @@ namespace purescript {
181#define FOREIGN_BEGIN(NS) namespace NS {\
181#define FOREIGN_BEGIN(NS) namespace NS {\
182 using namespace purescript;\
182 using namespace purescript;\
183 DEFINE_FOREIGN_DICTIONARY_AND_ACCESSOR()\
183 DEFINE_FOREIGN_DICTIONARY_AND_ACCESSOR()\
184− static const auto& NS ## $foreign_init = []() {\
184+ static const auto $foreign_exports_init$ = ([]() -> char {\
185 dict_t& exports = foreign();
185 dict_t& exports = foreign();
186−#define FOREIGN_END return exports; }(); }
186+#define FOREIGN_END return 0; }()); }
187
187
188#endif // purescript_H
188#endif // purescript_H