fix warnings

This commit is contained in:
Alex Bates 2020-10-23 20:17:35 +01:00
parent 7c70208230
commit f08eab499c
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706
2 changed files with 5 additions and 3 deletions

View File

@ -46,8 +46,8 @@ NpcSettings M(goombaNpcSettings) = {
.height = 20,
.radius = 23,
.ai = &M(GoombaAI),
.onHit = EnemyNpcHit,
.onDefeat = EnemyNpcDefeat,
.onHit = &EnemyNpcHit,
.onDefeat = &EnemyNpcDefeat,
.level = 5,
};

View File

@ -205,7 +205,6 @@ class LabelAllocation(Visitor):
class Compile(Transformer):
SIGNED_INT = str
HEX_INT = str
ESCAPED_STRING = str
def transform(self, tree):
self.alloc = LabelAllocation()
@ -215,6 +214,9 @@ class Compile(Transformer):
def CNAME(self, name):
return f"(Bytecode)(&{name})"
def ESCAPED_STRING(self, str_with_quotes):
return f"(Bytecode)({str_with_quotes})"
NOT_PARENS = str
def c_const_expr_internal(self, tree):
return f"({' '.join(tree.children)})"