Skip to content

Commit

Permalink
logging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmuth committed Mar 1, 2024
1 parent 52fe282 commit 7423834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions FrontEnd/macros.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def ExpandMacro(invoke: cwast.MacroInvoke, macro: cwast.DefMacro, ctx: MacroCont
cwast.CompilerError(invoke.x_srcloc, f"parameter mismatch in: {invoke}: "
f"actual {len(args)} expected: {len(params)}")
logger.info("Expanding Macro Invocation: %s", invoke)
logger.info("Macro: %s", macro)
# pp.PrettyPrint(invoke)
# pp.PrettyPrint(macro)
ctx.PushScope(invoke.x_srcloc)
Expand Down Expand Up @@ -151,7 +150,7 @@ def ExpandMacro(invoke: cwast.MacroInvoke, macro: cwast.DefMacro, ctx: MacroCont
gen_id, (cwast.MACRO_PARAM_KIND.ID, cwast.Id(new_name, x_srcloc=macro.x_srcloc)))
out = []
for node in macro.body_macro:
logger.info("Expand macro body node: %s", node)
logger.debug("Expand macro body node: %s", node)
# pp.PrettyPrint(node)
exp = ExpandMacroRecursively(node, ctx)
# pp.PrettyPrint(exp)
Expand Down
2 changes: 1 addition & 1 deletion FrontEnd/typify.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ def _CheckExpr2Types(node, result_type: cwast.CanonType, op1_type: cwast.CanonTy
else:
assert False
else:
assert op1_type.is_base_type()
assert op1_type.is_base_type(), f"{node}"
_CheckTypeSame(node, op1_type, result_type)
_CheckTypeSame(node, op2_type, result_type)

Expand Down

0 comments on commit 7423834

Please sign in to comment.