Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Why do we have to manually add Core sub-packages?
Re: Why do we have to manually add Core sub-packages? [message #36803 is a reply to message #36736] Sat, 07 July 2012 03:53 Go to previous messageGo to previous message
lectus is currently offline  lectus
Messages: 329
Registered: September 2006
Location: Brazil
Senior Member
How about add a comment to every header file indicating the package name using some kind of standard formating.
For example, first line would be:
// ** Package: Web **

in Web/Web.h.

So when you
#include <Web/Web.h>

then on the first build TheIde would add the package automatically by searching for the first line and extracting the package name.

This wouldn't break the possibility of using U++ in another Ide, because it would just be a comment that only the TheIde uses, and a comment is easily ignored by the compiler, so no overhead on compilation required.



Another cool feature would be to automatically add #include files by parsing the source code. Similar to what Netbeans does with Java. For example when finding String or Vector in code it adds #include <Core/Core.h>
But this would be a little be harder to implement.

[Updated on: Sat, 07 July 2012 03:56]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Minimum required to debug
Next Topic: add library
Goto Forum:
  


Current Time: Sun May 12 21:15:36 CEST 2024

Total time taken to generate the page: 0.01754 seconds