mirror of
https://github.com/ccxvii/mujs.git
synced 2026-09-23 16:53:35 +08:00
Move ToPrimitive hint flags into jsvalue.h
This commit is contained in:
@@ -13,7 +13,7 @@ CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-c
|
||||
ifeq "$(build)" "debug"
|
||||
CFLAGS += -g
|
||||
else
|
||||
CFLAGS += -O3
|
||||
CFLAGS += -O2
|
||||
endif
|
||||
|
||||
default: build build/mujs build/mujsone
|
||||
|
||||
@@ -4,6 +4,13 @@
|
||||
typedef struct js_Property js_Property;
|
||||
typedef struct js_Iterator js_Iterator;
|
||||
|
||||
/* Hint to ToPrimitive() */
|
||||
enum {
|
||||
JS_HNONE,
|
||||
JS_HNUMBER,
|
||||
JS_HSTRING
|
||||
};
|
||||
|
||||
enum js_Type {
|
||||
JS_TUNDEFINED,
|
||||
JS_TNULL,
|
||||
|
||||
Reference in New Issue
Block a user