NVSL / cfiddle

MIT License
3 stars 0 forks source link

Add bounds check on numeric arguments #6

Open stevenjswanson opened 1 year ago

stevenjswanson commented 1 year ago

Raise an exception if you pass a Python integer as an argument that is too large for type of the function argument.

e.g.

run(build(code(r"""void foo(uint8_t v){}""")), arguments=arg_map(v=300)))

Should fail