mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Add a note about generating stub code
This commit is contained in:
15
TODO.txt
15
TODO.txt
@@ -64,7 +64,22 @@ WAF Build
|
||||
Add support for using the cygwin and mingw32 compilers.
|
||||
|
||||
|
||||
Stubs for Optional Classes
|
||||
--------------------------
|
||||
|
||||
In Classic we tend to use empty stubs for classes and etc. that are optional
|
||||
and not available in a particular build of wxWidgets. That allows the
|
||||
compilations to succeed without needing to completely eliminate those wrapper
|
||||
classes, and when a user tries to use one of those classes they would get a
|
||||
NotImplementedError.
|
||||
|
||||
The big downside of that approach was that the stubs had to be maintained by
|
||||
hand, which is time consuming and error prone. However for Phoenix we have
|
||||
all the info about the API so we should be able to almost completely automate
|
||||
the generation of the empty stub code for those classes. ("Almost" because
|
||||
we'll need to specify which classes to do it for, and what #define flag to
|
||||
check if the the feature is available in wxWidgets or if the stubs should be
|
||||
compiled.)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user