diff --git a/src/api/definitions/mod.rs b/src/api/definitions/mod.rs index 171ca866..73908d04 100644 --- a/src/api/definitions/mod.rs +++ b/src/api/definitions/mod.rs @@ -4,7 +4,7 @@ use crate::module::FuncInfo; use crate::tokenizer::{is_valid_function_name, Token}; -use crate::{Engine, FnAccess, Module, Scope, INT}; +use crate::{Engine, FnAccess, FnPtr, Module, Scope, INT}; #[cfg(feature = "no_std")] use std::prelude::v1::*; @@ -545,6 +545,20 @@ fn def_type_name<'a>(ty: &'a str, engine: &'a Engine) -> Cow<'a, str> { #[cfg(not(feature = "no_float"))] let ty = ty.replace(type_name::(), "float"); + #[cfg(not(feature = "no_index"))] + let ty = ty.replace(type_name::(), "Array"); + + #[cfg(not(feature = "no_index"))] + let ty = ty.replace(type_name::(), "Blob"); + + #[cfg(not(feature = "no_object"))] + let ty = ty.replace(type_name::(), "Map"); + + #[cfg(not(feature = "no_std"))] + let ty = ty.replace(type_name::(), "Instant"); + + let ty = ty.replace(type_name::(), "FnPtr"); + ty.into() }