git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Minor cleanup of foreign exports init
commit8847fbc1cecb356be9199337743483d0e714fb06 authorAndy Arvanitis <andyarvanitis@gmail.com> dateFri 5 Oct 2018, 20:10 (8 years ago) parenta5cbe85
1 file changed+2−2
runtime/purescript.h+2−2
runtime/purescript.h+2−2
@@ -181,8 +181,8 @@ namespace purescript {
181181#define FOREIGN_BEGIN(NS) namespace NS {\
182182 using namespace purescript;\
183183 DEFINE_FOREIGN_DICTIONARY_AND_ACCESSOR()\
184− static const auto& NS ## $foreign_init = []() {\
184+ static const auto $foreign_exports_init$ = ([]() -> char {\
185185 dict_t& exports = foreign();
186−#define FOREIGN_END return exports; }(); }
186+#define FOREIGN_END return 0; }()); }
187187
188188#endif // purescript_H