Edited function and sslc docs

This commit is contained in:
NovaRain
2023-07-17 20:54:57 +08:00
parent 48355fa637
commit 4f36136a39
2 changed files with 4 additions and 2 deletions
@@ -357,6 +357,8 @@ There are several changes in this version of sslc which may result in problems f
- fixed unused arguments in a procedure being removed incorrectly by the optimizer - fixed unused arguments in a procedure being removed incorrectly by the optimizer
- fixed unused string literals in an optimized-out procedure not being removed by the optimizer - fixed unused string literals in an optimized-out procedure not being removed by the optimizer
- fixed `get_array` syntax not working for exported variables - fixed `get_array` syntax not working for exported variables
- fixed optional arguments not working for imported procedures
- fixed compiler crash when an exported procedure has no body
**sfall 4.2.9:** **sfall 4.2.9:**
- added support for additional universal opcodes `sfall_func7` and `sfall_func8` - added support for additional universal opcodes `sfall_func7` and `sfall_func8`
+2 -2
View File
@@ -540,8 +540,8 @@ sfall_funcX metarule functions
---- ----
#### floor2 #### floor2
`int sfall_func1("floor2", int/float value)` `int sfall_func1("floor2", int/float value)`
- Works just like vanilla `floor` function, but returns correct integers for negative values - Works just like vanilla `floor` function, but returns correct integers for negative floats
- __NOTE:__ vanilla `floor` function works exactly the same as ceil for negative values, much like trunc in C/C++ - __NOTE:__ vanilla `floor` function works exactly the same as `ceil` for negative floats (i.e. basically `trunc` in C/C++)
---- ----
#### item_weight #### item_weight