User forums > General (but related to Code::Blocks)
Tools Help
thomas:
Well yes, this works for exactly one layout, but not for arbitrary layouts...
TDragon:
And takes marginally less time to implement. Plus, if all the files C::B ever sees are in the src subdirectory, that's what GetCommonTopLevelPath() will return, ne?
mandrav:
--- Quote from: TDragon on March 10, 2006, 12:03:39 am ---And takes marginally less time to implement. Plus, if all the files C::B ever sees are in the src subdirectory, that's what GetCommonTopLevelPath() will return, ne?
--- End quote ---
It will return what it says: the common top-level path for the project.
Example:
devel
myproject_dir (<-- this will be returned by cbProject::GetCommonTopLevelPath())
include
a_file.h
src
a_file.cpp
b_file.cpp
projects
codeblocks
myproject.cbp (<-- this is your project file)
visualXXX
myproject.vcproj
And since it's trivial to be added as a macro, I think we will.
mandrav:
--- Quote from: SVN commit log ---Added $PROJECT_TOPDIR macro. Aliases: $PROJECT_TOPDIRECTORY, $PROJECTTOPDIR and $PROJECTTOPDIRECTORY. Returns the project's common top-level path.
--- End quote ---
Vampyre_Dark:
Oops, sorry for the confusion, I should have been more specific in my original post. Anyways, you got the idea after a few posts. :lol: I figured there would be some kind of directory relative path code to make it work, like ./ .. ..\ or something like that.. I never learned those codes.
That new addition will be very helpful eventually, when a new release is made.
Navigation
[0] Message Index
[*] Previous page
Go to full version