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