1 2 3 4 5 6 7 8
use crate::records::compile_error::CompileError; use core::ffi::c_char; impl CompileError { pub fn what(&self) -> *const c_char { self.message.as_ptr() as *const c_char } }