mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 19:40:18 +00:00
...
This commit is contained in:
parent
0f4c7d19ba
commit
502cef65a1
@ -303,7 +303,7 @@ __T _py_cast(VM* vm, PyObject* obj) {
|
||||
|
||||
#define CAST_F(x) vm->num_to_float(x)
|
||||
|
||||
#define CAST_DEFAULT(T, i, default_value) (i < args.size()) ? py_cast<T>(vm, args[index]) : (default_value)
|
||||
#define CAST_DEFAULT(T, i, default_value) (i < args.size()) ? py_cast<T>(vm, args[i]) : (default_value)
|
||||
|
||||
/*****************************************************************/
|
||||
template<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user