Skip to content

Ghidra is a software reverse engineering (SRE) framework

Corrected sleigh compile failure for V850

ghidra18ac353572bb3
diff --git a/Ghidra/Processors/V850/data/languages/Helpers/Macros.sinc b/Ghidra/Processors/V850/data/languages/Helpers/Macros.sinc
index b5829f6f71..5985412f08 100644
--- a/Ghidra/Processors/V850/data/languages/Helpers/Macros.sinc
+++ b/Ghidra/Processors/V850/data/languages/Helpers/Macros.sinc
@@ -120,12 +120,14 @@ macro set_OV0_S_Z(var)
##### General-Macros #####
-macro either_or(res, cond, true, false) # if condition is != 0
+# if condition is != 0
+macro either_or(res, cond, true, false)
{
res = (true * zext(cond != 0)) + (false * zext(cond == 0));
}
-macro either_or1(res, cond, true, false) # if condition is == 1
+# if condition is == 1
+macro either_or1(res, cond, true, false)
{
res = (true * zext(cond == 1)) + (false * zext(cond != 1));
}