This commit is contained in:
BLUELOVETH 2023-08-03 11:25:31 +08:00
parent 920e28cf12
commit 2a0bc6d504
5 changed files with 3 additions and 43 deletions

View File

@ -19,6 +19,7 @@
#include <initializer_list>
#include <variant>
#include <type_traits>
#include <random>
#define PK_VERSION "1.1.2"

View File

@ -84,10 +84,4 @@ namespace pkpy{
#undef PK_ENABLE_COMPUTED_GOTO
#endif
/*************** module settings ***************/
#define PK_MODULE_RE 1
#define PK_MODULE_RANDOM 1
#define PK_MODULE_EASING 1
#endif

View File

@ -1,9 +1,6 @@
#include "pocketpy/easing.h"
namespace pkpy{
#if PK_MODULE_EASING
// https://easings.net/
static const double PI = 3.1415926545;
@ -251,14 +248,4 @@ void add_module_easing(VM* vm){
#undef EASE
}
#else
void add_module_easing(VM* vm){
PK_UNUSED(vm);
}
#endif
} // namespace pkpy

View File

@ -1,9 +1,5 @@
#include "pocketpy/random.h"
#if PK_MODULE_RANDOM
#include <random>
namespace pkpy{
struct Random{
@ -55,11 +51,3 @@ void add_module_random(VM* vm){
}
} // namespace pkpy
#else
namespace pkpy{
void add_module_random(VM* vm){ (void)vm; }
} // namespace pkpy
#endif

View File

@ -1,7 +1,5 @@
#include "pocketpy/re.h"
#if PK_MODULE_RE
namespace pkpy{
struct ReMatch {
@ -82,11 +80,3 @@ void add_module_re(VM* vm){
}
} // namespace pkpy
#else
namespace pkpy{
void add_module_re(VM* vm){ (void)vm; }
} // namespace pkpy
#endif