summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-11-10 15:19:50 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-11-10 15:20:36 -0200
commit45e1ccf312225efad21a616602aedb3f9f0188bf (patch)
treec6c798f5bcf6a0b8f97f6dafd5e1d6ab9e88e4cb /src/lib/eolian_cxx
parenta94351a789ae7c11efb72c1b9f35cd7fae4d7fa2 (diff)
eolian-cxx: Remove EOLIAN_TYPE_POINTER enumeration
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index b2125e4cf6..ee03b652b7 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -262,10 +262,6 @@ inline void type_def::set(Eolian_Type const* eolian_type)
262 original_type = {regular_type_def{ ::eolian_type_name_get(eolian_type), {qualifiers(eolian_type), {}}, namespaces}}; 262 original_type = {regular_type_def{ ::eolian_type_name_get(eolian_type), {qualifiers(eolian_type), {}}, namespaces}};
263 } 263 }
264 break; 264 break;
265 case EOLIAN_TYPE_POINTER:
266 {
267 throw std::runtime_error("");
268 }
269 case EOLIAN_TYPE_CLASS: 265 case EOLIAN_TYPE_CLASS:
270 { 266 {
271 Eolian_Class const* klass = eolian_type_class_get(eolian_type); 267 Eolian_Class const* klass = eolian_type_class_get(eolian_type);
@@ -286,7 +282,7 @@ inline void type_def::set(Eolian_Type const* eolian_type)
286 } 282 }
287 break; 283 break;
288 default: 284 default:
289 std::abort(); 285 throw std::runtime_error("Type not supported");
290 break; 286 break;
291 } 287 }
292} 288}