mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
...
This commit is contained in:
parent
ccca4791ae
commit
66cefad078
@ -39,9 +39,9 @@ typedef py_TValue* py_TmpRef;
|
||||
typedef bool (*py_CFunction)(int argc, py_StackRef argv);
|
||||
|
||||
enum py_BindType {
|
||||
py_BindType_FUNCTION,
|
||||
py_BindType_STATICMETHOD,
|
||||
py_BindType_CLASSMETHOD
|
||||
bt_function,
|
||||
bt_staticmethod,
|
||||
bt_classmethod,
|
||||
};
|
||||
|
||||
enum py_CompileMode { EXEC_MODE, EVAL_MODE, REPL_MODE, CELL_MODE };
|
||||
|
@ -49,7 +49,7 @@ void py_newnativefunc(py_Ref out, py_CFunction f) {
|
||||
}
|
||||
|
||||
void py_bindmethod(py_Type type, const char* name, py_CFunction f) {
|
||||
py_bindmethod2(type, name, f, py_BindType_FUNCTION);
|
||||
py_bindmethod2(type, name, f, bt_function);
|
||||
}
|
||||
|
||||
void py_bindmethod2(py_Type type, const char* name, py_CFunction f, enum py_BindType bt) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user