Update mpack1.h

This commit is contained in:
blueloveTH 2026-07-21 14:30:09 +08:00
parent 2ed21e8814
commit f2b6d90a72

View File

@ -3,6 +3,10 @@
#include "mpack.h"
#include "pocketpy.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef bool (*is_mpack_ext_t)(py_Type type);
typedef bool (*py_to_mpack_ext_t)(py_Ref object, mpack_writer_t* writer);
typedef bool (*mpack_to_py_ext_t)(py_StackRef tmp, mpack_node_t node);
@ -10,3 +14,7 @@ typedef bool (*mpack_to_py_ext_t)(py_StackRef tmp, mpack_node_t node);
void mpack_config_exttype_callbacks(is_mpack_ext_t is_ext,
py_to_mpack_ext_t to_mpack,
mpack_to_py_ext_t to_py);
#ifdef __cplusplus
}
#endif