From ded75de379f12dafe084fc75e7ae5191820b834d Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 2 Dec 2023 13:48:20 +0800 Subject: [PATCH] some update --- include/pocketpy/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pocketpy/config.h b/include/pocketpy/config.h index 59fbba5f..a1ed612d 100644 --- a/include/pocketpy/config.h +++ b/include/pocketpy/config.h @@ -20,7 +20,9 @@ #endif // Enable this for `vm->_ceval_on_step` +#ifndef PK_ENABLE_CEVAL_CALLBACK // can be overrided by cmake #define PK_ENABLE_CEVAL_CALLBACK 0 +#endif // Whether to use `std::function` to do bindings or not // By default, functions to be binded must be a C function pointer without capture