[AD] [TODO] Accessor functions for global variables

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi,
  A set of getter (and setter where appropriate) functions for global
variables such as "char key[]" and "BITMAP* screen" would be nice. The
reason is that there are some development environments where these are
not easily available. Here's one example:
  The Digital Mars suite of compilers (C/C++/D) for Windows don't
support importing global variables from DLLs through import libraries.
To get around this, one has to either:
1. create an extra code file that dynamically loads the DLL and
provides the getter functions for the rest of the project, or
2. create a separate DLL that can link in a different environment
(e.g., MSVC) and so provide getters.
  Aldo




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/