MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / apply_debug_cfg

Function apply_debug_cfg

packages/native/src/debug.rs:100–120  ·  view source on GitHub ↗
(dst: &mut ffi::zr_debug_config_t, obj: &JsObject)

Source from the content-addressed store, hash-verified

98}
99
100fn apply_debug_cfg(dst: &mut ffi::zr_debug_config_t, obj: &JsObject) -> ParseResult<()> {
101 if let Some(value) = js_u8_bool(obj, "enabled", "enabled")? {
102 dst.enabled = value as u32;
103 }
104 if let Some(value) = js_u32(obj, "ringCapacity", "ring_capacity")? {
105 dst.ring_capacity = value;
106 }
107 if let Some(value) = js_u32(obj, "minSeverity", "min_severity")? {
108 dst.min_severity = value;
109 }
110 if let Some(value) = js_u32(obj, "categoryMask", "category_mask")? {
111 dst.category_mask = value;
112 }
113 if let Some(value) = js_u8_bool(obj, "captureRawEvents", "capture_raw_events")? {
114 dst.capture_raw_events = value as u32;
115 }
116 if let Some(value) = js_u8_bool(obj, "captureDrawlistBytes", "capture_drawlist_bytes")? {
117 dst.capture_drawlist_bytes = value as u32;
118 }
119 Ok(())
120}
121
122fn apply_debug_query(dst: &mut ffi::zr_debug_query_t, obj: &JsObject) -> ParseResult<()> {
123 if let Some(value) = js_u64(obj, "minRecordId", "min_record_id")? {

Callers 1

engine_debug_enableFunction · 0.85

Calls 2

js_u8_boolFunction · 0.85
js_u32Function · 0.85

Tested by

no test coverage detected