diff --git a/crates/compilation/src/lib.rs b/crates/compilation/src/lib.rs index fc3c728..5f7b8a8 100644 --- a/crates/compilation/src/lib.rs +++ b/crates/compilation/src/lib.rs @@ -83,7 +83,7 @@ fn generate_for_macro<'ast, 'src>( )?; } _ => Err(format!( - "Compilation not yet implemented for this invocation type {:?}", + "Compilation not yet implemented for this invocation type `{:?}`", invoke ))?, }, diff --git a/examples/errors/CompileError.huff b/examples/errors/CompileError.huff index 047c7b4..e8d750d 100644 --- a/examples/errors/CompileError.huff +++ b/examples/errors/CompileError.huff @@ -1,7 +1,8 @@ #define constant WOW = 0x123 +#define error NotSoNice() #define macro MAIN() = takes(0) returns(0) { - __codesize(NICE) + __FUNC_SIG(NotSoNice) [WOW] }