diff options
author | 2007-04-13 02:29:48 +0000 | |
---|---|---|
committer | 2007-04-13 02:29:48 +0000 | |
commit | 4bfec25e5ecb93c688205b37bc07cd6bd78484dc (patch) | |
tree | 7828ea9fa25d040d6d5b470bf02a03aad598edb2 /misc | |
parent | ff6d5901efd413e3b2d17f2d1dcd61a5e109f742 (diff) | |
download | paludis-4bfec25e5ecb93c688205b37bc07cd6bd78484dc.tar.gz paludis-4bfec25e5ecb93c688205b37bc07cd6bd78484dc.tar.xz |
Better doxygenation for se
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/make_se.bash | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/misc/make_se.bash b/misc/make_se.bash index 753e9856f..3683cb4f4 100755 --- a/misc/make_se.bash +++ b/misc/make_se.bash @@ -73,6 +73,12 @@ while read a ; do if [[ "${what_to_make}" == "--header" ]] ; then + echo "#ifdef DOXYGEN" + echo "// doxygen needs this to get namespaces right" + echo "namespace ${want_namespace}" + echo "{" + echo "#endif" + doxygen_comment() { cat @@ -87,7 +93,7 @@ while read a ; do echo " ${want_keys[${k}]}, ///< ${want_key_descriptions[${k}]}" done - echo " last_${want_prefix_key}" + echo " last_${want_prefix_key} ///< Number of keys in ${want_namespace}::${a}" echo "};" @@ -96,6 +102,11 @@ while read a ; do echo "operator<< (std::ostream &, const $a &);" echo + echo "#ifdef DOXYGEN" + echo "// end namespace for doxygen" + echo "}" + echo "#endif" + elif [[ "${what_to_make}" == "--source" ]] ; then echo "std::ostream &" |