Skip to main content

luaur_compile_cli/functions/
report_error_compile.rs

1use core::ffi::c_char;
2
3use luaur_ast::records::parse_error::ParseError;
4
5use crate::functions::report::report;
6
7pub fn report_error_c_char_luau_parse_error(name: *const c_char, error: &ParseError) {
8    report(name, error.get_location(), "SyntaxError", error.what());
9}