mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-22 20:40:18 +00:00
...
This commit is contained in:
parent
920e28cf12
commit
2a0bc6d504
@ -19,6 +19,7 @@
|
|||||||
#include <initializer_list>
|
#include <initializer_list>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
|
#include <random>
|
||||||
|
|
||||||
#define PK_VERSION "1.1.2"
|
#define PK_VERSION "1.1.2"
|
||||||
|
|
||||||
|
@ -84,10 +84,4 @@ namespace pkpy{
|
|||||||
#undef PK_ENABLE_COMPUTED_GOTO
|
#undef PK_ENABLE_COMPUTED_GOTO
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*************** module settings ***************/
|
|
||||||
|
|
||||||
#define PK_MODULE_RE 1
|
|
||||||
#define PK_MODULE_RANDOM 1
|
|
||||||
#define PK_MODULE_EASING 1
|
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -1,9 +1,6 @@
|
|||||||
#include "pocketpy/easing.h"
|
#include "pocketpy/easing.h"
|
||||||
|
|
||||||
namespace pkpy{
|
namespace pkpy{
|
||||||
|
|
||||||
#if PK_MODULE_EASING
|
|
||||||
|
|
||||||
// https://easings.net/
|
// https://easings.net/
|
||||||
|
|
||||||
static const double PI = 3.1415926545;
|
static const double PI = 3.1415926545;
|
||||||
@ -251,14 +248,4 @@ void add_module_easing(VM* vm){
|
|||||||
|
|
||||||
#undef EASE
|
#undef EASE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
void add_module_easing(VM* vm){
|
|
||||||
PK_UNUSED(vm);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} // namespace pkpy
|
} // namespace pkpy
|
@ -1,9 +1,5 @@
|
|||||||
#include "pocketpy/random.h"
|
#include "pocketpy/random.h"
|
||||||
|
|
||||||
#if PK_MODULE_RANDOM
|
|
||||||
|
|
||||||
#include <random>
|
|
||||||
|
|
||||||
namespace pkpy{
|
namespace pkpy{
|
||||||
|
|
||||||
struct Random{
|
struct Random{
|
||||||
@ -55,11 +51,3 @@ void add_module_random(VM* vm){
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace pkpy
|
} // namespace pkpy
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
namespace pkpy{
|
|
||||||
void add_module_random(VM* vm){ (void)vm; }
|
|
||||||
} // namespace pkpy
|
|
||||||
|
|
||||||
#endif
|
|
10
src/re.cpp
10
src/re.cpp
@ -1,7 +1,5 @@
|
|||||||
#include "pocketpy/re.h"
|
#include "pocketpy/re.h"
|
||||||
|
|
||||||
#if PK_MODULE_RE
|
|
||||||
|
|
||||||
namespace pkpy{
|
namespace pkpy{
|
||||||
|
|
||||||
struct ReMatch {
|
struct ReMatch {
|
||||||
@ -82,11 +80,3 @@ void add_module_re(VM* vm){
|
|||||||
}
|
}
|
||||||
|
|
||||||
} // namespace pkpy
|
} // namespace pkpy
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
namespace pkpy{
|
|
||||||
void add_module_re(VM* vm){ (void)vm; }
|
|
||||||
} // namespace pkpy
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user