removed a wrong macro definitnion MOO_DEBUG_BIGINT

This commit is contained in:
hyunghwan.chung 2018-02-21 12:59:14 +00:00
parent ae0f559060
commit 5612e999d1

View File

@ -55,7 +55,6 @@
#define MOO_DEBUG_COMPILER 1 #define MOO_DEBUG_COMPILER 1
#define MOO_DEBUG_VM_PROCESSOR 1 #define MOO_DEBUG_VM_PROCESSOR 1
/*#define MOO_DEBUG_VM_EXEC*/ /*#define MOO_DEBUG_VM_EXEC*/
#define MOO_DEBUG_BIGINT 1
#define MOO_PROFILE_VM 1 #define MOO_PROFILE_VM 1
#endif #endif
@ -74,10 +73,12 @@
#define MOO_LIMIT_OBJ_SIZE #define MOO_LIMIT_OBJ_SIZE
/* TODO: delete these header inclusion lines after having revised MOO_MEMXXX macros. */
#include <string.h>
#if defined(__has_builtin) #if defined(__has_builtin)
# if (!__has_builtin(__builtin_memset) || !__has_builtin(__builtin_memcpy) || !__has_builtin(__builtin_memmove) || !__has_builtin(__builtin_memcmp))
# include <string.h>
# endif
# if __has_builtin(__builtin_memset) # if __has_builtin(__builtin_memset)
# define MOO_MEMSET(dst,src,size) __builtin_memset(dst,src,size) # define MOO_MEMSET(dst,src,size) __builtin_memset(dst,src,size)
# else # else
@ -98,7 +99,13 @@
# else # else
# define MOO_MEMCMP(dst,src,size) memcmp(dst,src,size) # define MOO_MEMCMP(dst,src,size) memcmp(dst,src,size)
# endif # endif
#else #else
# if defined(HAVE___BUILTIN_MEMSET) || !defined(HAVE___BUILTIN_MEMCPY) || !defined(HAVE___BUILTIN_MEMMOVE) || !defined(HAVE___BUILTIN_MEMCMP)
# include <string.h>
# endif
# if defined(HAVE___BUILTIN_MEMSET) # if defined(HAVE___BUILTIN_MEMSET)
# define MOO_MEMSET(dst,src,size) __builtin_memset(dst,src,size) # define MOO_MEMSET(dst,src,size) __builtin_memset(dst,src,size)
# else # else
@ -119,6 +126,7 @@
# else # else
# define MOO_MEMCMP(dst,src,size) memcmp(dst,src,size) # define MOO_MEMCMP(dst,src,size) memcmp(dst,src,size)
# endif # endif
#endif #endif