• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Emily's Z80 assembler for the Gameboy.


Commit MetaInfo

修订版fa51a4d3dcbe63ea293628f31495525002ec51b9 (tree)
时间2021-03-02 17:08:53
作者AlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Report errors for included files

更改概述

差异

--- a/em_gb_asm.py
+++ b/em_gb_asm.py
@@ -727,8 +727,13 @@ def assemble(block, mnemonic, operands=()):
727727 block.error("Recursive include of " + o)
728728 else:
729729 included_names.add(o)
730- assembleFile(block, o)
731- included_names.remove(o)
730+ try:
731+ assembleFile(block, o)
732+ except Error:
733+ print("Error in " + o)
734+ raise
735+ finally:
736+ included_names.remove(o)
732737 return
733738
734739 if mnemonic[0] == '!':