We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6421e89 commit e5647d8Copy full SHA for e5647d8
zjit/src/cruby.rs
@@ -1175,8 +1175,10 @@ pub(crate) mod ids {
1175
1176
/// Get an CRuby `ID` to an interned string, e.g. a particular method name.
1177
macro_rules! ID {
1178
- ($id_name:ident) => {
1179
- $crate::cruby::ids::$id_name.load(std::sync::atomic::Ordering::Relaxed)
1180
- }
+ ($id_name:ident) => {{
+ let id = $crate::cruby::ids::$id_name.load(std::sync::atomic::Ordering::Relaxed);
+ debug_assert_ne!(0, id, "ids module should be initialized");
1181
+ id
1182
+ }}
1183
}
1184
pub(crate) use ID;
0 commit comments