Always error, remove some chaff
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -71,8 +71,6 @@ fun function_value_lower(name_ast_map: *map<string, pair<*tree<symbol>,*ast_node
|
||||
}
|
||||
run_on_tree(helper_before, empty_pass_second_half(), syntax_ast_pair.second, &visited)
|
||||
})
|
||||
println(string("there are ") + function_value_creation_points.size + " function value creation points in the program.")
|
||||
println(string("there are ") + all_types.size() + " all types in the program.")
|
||||
|
||||
var void_ptr = type_ptr(base_type::void_return(), 1)
|
||||
var lambda_type_to_struct_type_and_call_func = map<type, pair<*type, *ast_node>>(); //freaking vexing parse moved
|
||||
|
||||
Reference in New Issue
Block a user