diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-19 00:19:47 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:35 +1030 |
commit | 88bb249473db4e4923e4c27a8e3ece7a77e738ce (patch) | |
tree | 9c7d5d537fb539aca1f17b75c7296d1f6489de22 /manual.txt | |
parent | 1a5460be319ac29af31f201fbf9775340262ba9b (diff) | |
download | lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.tar.gz lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.tar.bz2 lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.zip |
Disable registration of cjson global variable
Disable registration of cjson module table global variable in the
default build. Automatically creating a variable in the global namespace
can cause issues for other software and is no longer recommended with
Lua.
Diffstat (limited to 'manual.txt')
-rw-r--r-- | manual.txt | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -113,9 +113,9 @@ Build Options (#define) | |||
113 | ~~~~~~~~~~~~~~~~~~~~~~~ | 113 | ~~~~~~~~~~~~~~~~~~~~~~~ |
114 | 114 | ||
115 | [horizontal] | 115 | [horizontal] |
116 | ENABLE_CJSON_GLOBAL:: Register +cjson+ module table as a global | ||
117 | variable (not recommended). | ||
116 | USE_INTERNAL_ISINF:: Workaround for Solaris platforms missing ++isinf++(3). | 118 | USE_INTERNAL_ISINF:: Workaround for Solaris platforms missing ++isinf++(3). |
117 | DISABLE_CJSON_GLOBAL:: Do not store module table in global "cjson" | ||
118 | variable. Redundant from Lua 5.2 onwards. | ||
119 | DISABLE_INVALID_NUMBERS:: Recommended on platforms where ++strtod++(3) / | 119 | DISABLE_INVALID_NUMBERS:: Recommended on platforms where ++strtod++(3) / |
120 | ++sprintf++(3) are not POSIX compliant (Eg, Windows MinGW). Prevents | 120 | ++sprintf++(3) are not POSIX compliant (Eg, Windows MinGW). Prevents |
121 | +cjson.encode_invalid_numbers+ and +cjson.decode_invalid_numbers+ | 121 | +cjson.encode_invalid_numbers+ and +cjson.decode_invalid_numbers+ |