Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » "init" files in packages...
|
Re: "init" files in packages... [message #12279 is a reply to message #12277] |
Tue, 23 October 2007 14:00 ![Go to previous message Go to previous message](theme/default/images/up.png) |
![](https://www.ultimatepp.org/forums/images/custom_avatars/3.png) |
mirek
Messages: 14003 Registered: November 2005
|
Ultimate Member |
|
|
luzr wrote on Tue, 23 October 2007 05:44 | In an attempt to make non-ide use of U++ more possible, I have added a simple code to package saveing that also generates small "init" to the package directory, which includes all .icpp files.
The idea is to allow initialization of non-ide built applications using #include in main.cpp:
#include <CtrlLib/init>
#include <CtrlCore/init>
....
Mirek
|
Follow up: After more thinking, it is really simple to add dependend .icpp this way, e.g.
CtrlLib/init:
#ifndef _CtrlLib_icpp_init_stub
#define _CtrlLib_icpp_init_stub
#include "CtrlCore/init"
#include "RichText/init"
#include "PdfDraw/init"
#include "CtrlLib.icpp"
#endif
-> the only responsibility for using CtrlLib is in this case #include <CtrlLib/init> in the .cpp which contains main/WinMain.
(Implemented in TheIDE).
Mirek
[Updated on: Tue, 23 October 2007 14:02] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Sep 01 08:13:47 CEST 2024
Total time taken to generate the page: 0.04888 seconds
|