From bd74f649effa80404b4de83c33f09047f915da9d Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sat, 11 Dec 2021 00:57:19 -0600 Subject: [PATCH] Added escape for various @things --- c2logic/compiler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/c2logic/compiler.py b/c2logic/compiler.py index 03153ef..5ca0604 100644 --- a/c2logic/compiler.py +++ b/c2logic/compiler.py @@ -340,6 +340,8 @@ class Compiler(c_ast.NodeVisitor): varname = self.get_varname(varname) if varname in SPECIAL_VARS: varname = "@" + varname + if varname.startswith("_at_"): + varname = "@" + varname[4:].replace("_", '-') self.push(Set("__rax", varname)) def visit_BinaryOp(self, node):