Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

feat: add lazy static #14

Merged
merged 2 commits into from
Feb 8, 2020
Merged

feat: add lazy static #14

merged 2 commits into from
Feb 8, 2020

Conversation

pleshevskiy
Copy link
Owner

@pleshevskiy pleshevskiy commented Feb 8, 2020

I've added lazy static implementation for variables. Also added &'static str implementation. This type can be used by default

config! {
    static STATIC_STR => "test",
    static STATIC_STRING: String => "test",
    static STATIC_I8: i8 => 1,
    static STATIC_I16: i16 => 1,
    static STATIC_I32: i32 => 1,
    static STATIC_I64: i64 => 1,
    static STATIC_I128: i128 => 1,
    static STATIC_ISIZE: isize => 1,
    static STATIC_U8: u8 => 1,
    static STATIC_U16: u16 => 1,
    static STATIC_U32: u32 => 1,
    static STATIC_U64: u64 => 1,
    static STATIC_U128: u128 => 1,
    static STATIC_USIZE: usize => 1,
    static STATIC_F32: f32 => 1,
    static STATIC_F64: f64 => 1,
    static STATIC_CONCAT_VARIABLE < (
        "static ",
        STATIC_CONCAT_PART => "part",
    ),
}

Closes #13

@pleshevskiy pleshevskiy merged commit a9df98a into master Feb 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add lazy static to macro
1 participant