Provide trivial PREPROCESSOR directives for ability to make CONDITIONAL
compiling (exclude debug code from BLR but do not make it be commented or
removed)
----------------------------------------------------------------------------------------------------------------------------------------------------------
Key: CORE-4692
URL: http://tracker.firebirdsql.org/browse/CORE-4692
Project: Firebird Core
Issue Type: Improvement
Reporter: Pavel Zotov
It will be very useful if this feature will be implemented.
Code which can produce exceptions under race conditions often can NOT be
debugged otherwise than via adding somethisng like that:
...
RDB$SET_CONTEXT( 'USER_SESSION', 'DEBUG_POINT_#12', <SOME-INFO> );
...
-- and after that code has been added we can start app, start trace and watch
for appearing in the trace log interesting message like:
'DEBUG_POINT_#12' = "....."
Volume of such code can be pretty much, dozen of lines.
But when we catch the reason of 'misterious' exceptions and apply some fixes we
still can not be sure for 100% that this lines will not ever be needed.
On the other hand, is is not desirable to remain these lines in the working
code because of performance affect.
Neither we do not ever comment these lines - its can take lot of time to do
that.
So, my proposition is to add something like preprocessor directives before code
will be compiled into BLR.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel