• Dmitry Frank's avatar
    Commonize arg checking in cfunctions · bd130136
    Dmitry Frank authored
    Add `mjs_check_arg()` which checks whether argument is provided, and
    checks its type. It simplifies code and makes it smaller (because
    error strings are not ad-hoc, so they are not duplicated)
    
    As part of that, also commonize type stringifying: implement
    `mjs_stringify_type` and reimplement `mjs_typeof` on top of that.
    
    Use `mjs_check_arg()` in `mjs_string_slice()` and
    `mjs_string_char_code_at()`.
    
    PUBLISHED_FROM=0b72cf479738ff405d991cbd4bf9e75edda0f111
    bd130136
Name
Last commit
Last update
docs Loading commit data...
examples Loading commit data...
jni Loading commit data...
tools Loading commit data...
.mbedignore Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
mongoose.c Loading commit data...
mongoose.h Loading commit data...