Always error, remove some chaff

This commit is contained in:
Nathan Braswell
2017-08-15 19:53:17 -04:00
parent 0cf9beb057
commit 9621ce85a6
2 changed files with 1 additions and 3 deletions

View File

@@ -797,7 +797,7 @@ obj c_generator (Object) {
if (type->is_raw) {
function_typedef_string += string("typedef ") + type_to_c(type->return_type) + " (*" + temp_name + ")(" + temp.slice(1,-1) + ");\n"
} else {
/*error(type->to_string() + " is not raw!")*/
error(type->to_string() + " is not raw!")
var with_data = string("/* not raw */ typedef ") + type_to_c(type->return_type) + " (*" + temp_name + "_with_data)(void*" + temp + ");\n"
var without_data = string("typedef ") + type_to_c(type->return_type) + " (*" + temp_name + "_without_data)(" + temp.slice(1,-1) + ");\n"
function_typedef_string += with_data