wduquette / molt

Embeddable TCL Interpreter for Rust applications
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

Added correct reference to current crate within macros #107

Open gzz2000 opened 1 year ago

gzz2000 commented 1 year ago

Hi @wduquette, please review my PR that fixes the macro bug when molt::{ Value, Exception } is not included in user code.

Before this fix, the following user code would fail:

// no `use molt::{ Value, Exception }` here

fn some_command(...) {
    ...
    molt::molt_ok!(xxx)
}

Btw thanks for this awesome project! I am now using molt to build an electronics design automation software and I might contribute more code later.