if (sub_index != std::string::npos) {
std::string sub_namespace = language.substr(sub_index+1);
if ( ! it->second->is_valid_namespace(sub_namespace)) {
- std::string warning = base_language + " generator does not accept '" + sub_namespace + "' as sub-namespace!";
- pwarning(1, warning.c_str());
+ throw base_language + " generator does not accept '" + sub_namespace + "' as sub-namespace!";
}
}
}
namespace php ThriftTest
namespace delphi Thrift.Test
namespace cocoa ThriftTest
-
-// Presence of namespaces and sub-namespaces for which there is
-// no generator should compile with warnings only
-namespace noexist ThriftTest
-namespace cpp.noexist ThriftTest
-
namespace * thrift.test
/**
struct StructB {
1: optional StructA aa;
2: required StructA ab;
-}
+}
\ No newline at end of file