aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/myoption.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-19 12:13:30 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-19 21:14:38 +0100
commitc351c6097f5072696285e6dd88808e70446d6a22 (patch)
tree6721dad0eed7f9f63ccbb9a169d7bd3b0704cb5b /paludis/repositories/e/myoption.hh
parent86f4998ea2441fcd6870f19fb312659dfb81e92e (diff)
downloadpaludis-c351c6097f5072696285e6dd88808e70446d6a22.tar.gz
paludis-c351c6097f5072696285e6dd88808e70446d6a22.tar.xz
Prevent MYOPTIONS abuses
Diffstat (limited to 'paludis/repositories/e/myoption.hh')
-rw-r--r--paludis/repositories/e/myoption.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/paludis/repositories/e/myoption.hh b/paludis/repositories/e/myoption.hh
index 871bfc5fd..f8f3e8e31 100644
--- a/paludis/repositories/e/myoption.hh
+++ b/paludis/repositories/e/myoption.hh
@@ -21,6 +21,7 @@
#define PALUDIS_GUARD_PALUDIS_REPOSITORIES_E_MYOPTION_HH 1
#include <paludis/util/attributes.hh>
+#include <paludis/util/exception.hh>
#include <paludis/choice-fwd.hh>
#include <utility>
#include <string>
@@ -29,6 +30,13 @@ namespace paludis
{
namespace erepository
{
+ class PALUDIS_VISIBLE MyOptionsError :
+ public Exception
+ {
+ public:
+ MyOptionsError(const std::string & message) throw ();
+ };
+
std::pair<UnprefixedChoiceName, bool> parse_myoption(const std::string &) PALUDIS_VISIBLE PALUDIS_ATTRIBUTE((warn_unused_result));
}
}