mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Time class made optinal
This commit is contained in:
@@ -39,6 +39,9 @@ typedef intptr_t mrb_sym;
|
||||
#define INCLUDE_MATH /* use (non ISO) Math module */
|
||||
//#undef INCLUDE_MATH /* not use (non ISO) Math module */
|
||||
|
||||
#define INCLUDE_TIME /* use Time module */
|
||||
//#undef INCLUDE_TIME /* not use Time module */
|
||||
|
||||
#ifdef MRUBY_DEBUG_BUILD
|
||||
# define PARSER_DUMP
|
||||
#endif
|
||||
|
||||
@@ -56,7 +56,9 @@ mrb_init_core(mrb_state *mrb)
|
||||
#endif
|
||||
mrb_init_exception(mrb);
|
||||
mrb_init_print(mrb);
|
||||
#ifdef INCLUDE_TIME
|
||||
mrb_init_time(mrb);
|
||||
#endif
|
||||
#ifdef INCLUDE_MATH
|
||||
mrb_init_math(mrb);
|
||||
#endif
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
|
||||
#include "mruby.h"
|
||||
#ifdef INCLUDE_TIME
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
@@ -742,3 +743,5 @@ mrb_init_time(mrb_state *mrb)
|
||||
utc_offset(15.2.19.7.29)
|
||||
*/
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user