Project: titanium
Issue TIMOB-18403: HAL: Create helper functions/macros for common property additions to classes
Can't we come up with something like this: {code:cpp} JSExportFunction("UIModule","createScrollView"); {code} This would generate: {code:cpp} JSExport::AddFunctionProperty("createScrollView", std::mem_fn(&UIModule::js_createScrollView)); {code} Advantage is that we force a compile time pattern for the TitaniumKit defined interfaces and it's easier later if we want to change the pattern or add assertions or even compile this code out with our compiler because this method isn't used by the app. From Jeff's review comments here: https://github.com/sgtcoolguy/titanium_mobile_windows/commit/c2d07889a2ca6fbb4f689138252003838a42a7e6#commitcomment-9323249
Story points: 5