You've already forked native_api_1c_core
fixed names count cause runtime exception
This commit is contained in:
@ -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>],
|
||||
|
@ -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,
|
||||
},
|
||||
|
Reference in New Issue
Block a user