1
0

fixed names count cause runtime exception

This commit is contained in:
Kozlov Maxim
2023-08-04 11:21:35 +06:00
parent 607d3d0bff
commit 9e09bbe08a
2 changed files with 3 additions and 3 deletions

View File

@ -6,13 +6,13 @@ use crate::ffi::{
use color_eyre::eyre::Result;
pub struct ComponentPropDescription {
pub names: &'static [&'static str],
pub names: &'static [&'static str; 2],
pub readable: bool,
pub writable: bool,
}
pub struct ComponentFuncDescription {
pub names: &'static [&'static str],
pub names: &'static [&'static str; 2],
pub params_count: usize,
pub returns_val: bool,
pub default_values: &'static [Option<ParamValue>],

View File

@ -12,7 +12,7 @@ impl MyAddInDescription {
pub fn generate_prop_list() -> Vec<PropListElement> {
vec![PropListElement {
description: ComponentPropDescription {
names: &["prop"],
names: &["Property", "Свойство"],
readable: true,
writable: true,
},