mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-29 17:39:02 +02:00
Move inspect into if statement for runtime
This commit is contained in:
+2
-2
@@ -11,9 +11,9 @@ import sys
|
||||
|
||||
|
||||
def check(check, str):
|
||||
(frame, filename, line_number, function_name, lines,
|
||||
index) = inspect.getouterframes(inspect.currentframe())[1]
|
||||
if not check:
|
||||
(frame, filename, line_number, function_name, lines,
|
||||
index) = inspect.getouterframes(inspect.currentframe())[1]
|
||||
sys.stderr.write("ERROR: file {0}: line {1}: {2}\n".format(
|
||||
os.path.basename(filename), line_number, str))
|
||||
log("ERROR: file {0}: line {1}: {2}\n".format(
|
||||
|
||||
Reference in New Issue
Block a user