Ticket #146 (closed enhancement: invalid)

Opened 2 years ago

Last modified 2 years ago

Patch for CPEdit macros

Reported by: marcusl Assigned to: unassigned
Priority: minor Milestone:
Component: System Version: 1.8
Keywords: Cc:
Completion:

Description

While these will be removed in the future, this little patch fixes some annoyances:

#define CPEdit(fc, mask) \
    ::OSG::CPEditor CPEdit_##__LINE__((fc),(mask))

This allows CPEdit(this→that[42].getStuff()→m_fcContainer[23], …).

The only downside with this is that the names won't be unique across source files, but since we seldom #include parts of a function, it wont matter and I think it's much better than what we have now.

Change History

12/21/06 04:35:32 changed by marcusl

Also, it might be nice to wrap every macro in general with "#ifndef/#endif" so that users can provide their own replacements without problems.

01/02/07 06:41:28 changed by marcusl

  • status changed from new to closed.
  • resolution set to invalid.

Uh. This doesn't work properly. Nevermind. :-/