diff --git a/stdlib/c_generator.krak b/stdlib/c_generator.krak index 51a59b5..773cbd0 100644 --- a/stdlib/c_generator.krak +++ b/stdlib/c_generator.krak @@ -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 diff --git a/stdlib/function_value_lower.krak b/stdlib/function_value_lower.krak index 22e565f..fec7adc 100644 --- a/stdlib/function_value_lower.krak +++ b/stdlib/function_value_lower.krak @@ -71,8 +71,6 @@ fun function_value_lower(name_ast_map: *map,*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>(); //freaking vexing parse moved