Skip to main content

Module int

Module int 

Source
Expand description

NSIS integer semantics, ported line-for-line from Contrib/ExDLL/pluginapi.c.

str::parse is not equivalent and must not be used. NSIS accepts 0x/0X hex, leading-zero octal, and signed decimal; it stops at the first character it does not recognise instead of failing; it wraps on overflow; and an unparseable string is 0, not an error. Scripts depend on all of that.

Functions§

atoi_or
myatoi_or: like str_to_ptr, but ORs together 2|4|8 forms.
format
Formats an integer the way pushintptr does: plain signed decimal.
str_to_ptr
nsishelper_str_to_ptr: NSIS’s own string-to-integer conversion.