]> git.evergreen-ils.org Git - OpenSRF.git/commit
Reformed the macros OSRF_METHOD_VERIFY_CONTEXT and _OSRF_METHOD_VERIFY_CONTEXT.
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 12 Jan 2009 20:17:39 +0000 (20:17 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 12 Jan 2009 20:17:39 +0000 (20:17 +0000)
commit5f69ce908f531afe0a940bc02cb311a236f3388d
tree8a09725b9c6a73e2e8768360784df87a44ae8ded
parent66b1ca3cbae357abb95b4a31bba1d93072762c97
Reformed the macros OSRF_METHOD_VERIFY_CONTEXT and _OSRF_METHOD_VERIFY_CONTEXT.

1. Renamed _OSRF_METHOD_VERIFY_CONTEXT to OSRF_METHOD_VERIFY_CONTEXT_
and the variable __j to _j, to avoid using reserved identifiers.

2. Applied the do/while(0) trick to accommodate multiple statements.

3. Avoid evaluating the macro arguments more than once.

4. Rearranged the white space for readability.

This update is a Band-aid.  These macros should turn into a proper function.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1618 9efc2488-bf62-4759-914b-345cdb29e865
include/opensrf/osrf_application.h