{"action":"created","issue":{"url":"https://api.github.com/repos/martinmoene/lest/issues/23","labels_url":"https://api.github.com/repos/martinmoene/lest/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/martinmoene/lest/issues/23/comments","events_url":"https://api.github.com/repos/martinmoene/lest/issues/23/events","html_url":"https://github.com/martinmoene/lest/issues/23","id":118202308,"number":23,"title":"User-defined functions based on lest macros","user":{"login":"MariusDe","id":15859931,"avatar_url":"https://avatars.githubusercontent.com/u/15859931?v=3","gravatar_id":"","url":"https://api.github.com/users/MariusDe","html_url":"https://github.com/MariusDe","followers_url":"https://api.github.com/users/MariusDe/followers","following_url":"https://api.github.com/users/MariusDe/following{/other_user}","gists_url":"https://api.github.com/users/MariusDe/gists{/gist_id}","starred_url":"https://api.github.com/users/MariusDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariusDe/subscriptions","organizations_url":"https://api.github.com/users/MariusDe/orgs","repos_url":"https://api.github.com/users/MariusDe/repos","events_url":"https://api.github.com/users/MariusDe/events{/privacy}","received_events_url":"https://api.github.com/users/MariusDe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-21T15:13:59Z","updated_at":"2015-11-22T18:32:21Z","closed_at":null,"body":"Hi, again a basic question about a simple use-case: what options are available for users which need stand-alone functions which use lest related macros (like EXPECT(), etc.)? \r\nMy use-case would be a (reusable) function which needs to be called repeatedly from one or more CASE()s.\r\n\r\nI tried the classic approaches: stand-alone function defined outside of CASE() as well as lambda function - defined inside the CASE(), which contains EXPECT() calls- but I did not managed to have working code (gcc 4.8.1). \r\nHere is the error when calling the lambda function containing the EXPECT() calls:\r\n```\r\n.../lest/src/lest.hpp:136:23: error: '$' is not captured\r\n             else if ( $.pass ) \\\r\n                       ^\r\n.../lest/src/lest.hpp:81:28: note: in expansion of macro 'lest_EXPECT'\r\n # define EXPECT            lest_EXPECT\r\n                            ^\r\n```\r\nCheers,\r\nMarius"},"comment":{"url":"https://api.github.com/repos/martinmoene/lest/issues/comments/158787442","html_url":"https://github.com/martinmoene/lest/issues/23#issuecomment-158787442","issue_url":"https://api.github.com/repos/martinmoene/lest/issues/23","id":158787442,"user":{"login":"martinmoene","id":1999290,"avatar_url":"https://avatars.githubusercontent.com/u/1999290?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmoene","html_url":"https://github.com/martinmoene","followers_url":"https://api.github.com/users/martinmoene/followers","following_url":"https://api.github.com/users/martinmoene/following{/other_user}","gists_url":"https://api.github.com/users/martinmoene/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmoene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmoene/subscriptions","organizations_url":"https://api.github.com/users/martinmoene/orgs","repos_url":"https://api.github.com/users/martinmoene/repos","events_url":"https://api.github.com/users/martinmoene/events{/privacy}","received_events_url":"https://api.github.com/users/martinmoene/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T18:32:21Z","updated_at":"2015-11-22T18:32:21Z","body":"mm missed the \" for the above code\" ..."}}