feat: refactor Value union to uint64_t and add C++98 compatibility for Wren VM

- Replace Value union with plain uint64_t typedef under WREN_NAN_TAGGING, removing num/bits field access
- Add wrenValueToNum and wrenNumToValue helper functions for double conversion
- Remove wrenValuesEqual function from wren_value.c as bitwise comparison is now direct
- Update Makefile with CPPFLAGS for C++98 compilation and add release-cpp build target
- Add wren-cpp and libwren-cpp.a to .gitignore for C++ build artifacts
This commit is contained in:
Bob Nystrom
2015-01-16 05:12:51 +00:00
parent e8121af372
commit 26fd4d2192
4 changed files with 100 additions and 49 deletions
+2
View File
@@ -6,8 +6,10 @@ build_xcode/
# Built files at the top level.
wren
wrend
wren-cpp
libwren.a
libwrend.a
libwren-cpp.a
# XCode user-specific stuff.
xcuserdata/