From b56b50b14789ec135366caff7dd4151392cab699 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 1 Mar 2022 09:50:28 +0800 Subject: [PATCH] add comment about EXCEPTION_ID_LOOKUP sync --- src/runtime/src/eh_artiq.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/src/eh_artiq.rs b/src/runtime/src/eh_artiq.rs index 797b8382..e7a82824 100644 --- a/src/runtime/src/eh_artiq.rs +++ b/src/runtime/src/eh_artiq.rs @@ -405,6 +405,7 @@ extern fn stop_fn(_version: c_int, } } +// Must be kept in sync with preallocate_runtime_exception_names() in artiq/language/embedding_map.py static EXCEPTION_ID_LOOKUP: [(&str, u32); 10] = [ ("RuntimeError", 0), ("RTIOUnderflow", 1),