• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

Emily's Z80 assembler for the Gameboy.


Commit MetaInfo

Revisionfa51a4d3dcbe63ea293628f31495525002ec51b9 (tree)
Zeit2021-03-02 17:08:53
AutorAlaskanEmily <emily@alas...>
CommiterAlaskanEmily

Log Message

Report errors for included files

Ändern Zusammenfassung

Diff

--- 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] == '!':